[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Troubles with --include-list and --exclude-list
Re: [rdiff-backup-users] Troubles with --include-list and --exclude-list options
Wed, 03 May 2006 00:59:50 -0400
Thunderbird 188.8.131.52 (Macintosh/20060308)
I think what you want to do is as simple as switching the order of
--exclude-filelist and --include-filelist. So,
rdiff-backup --verbosity 5 \
--include-filelist /backup/include/$i \
--exclude-filelist /backup/exclude/$i \
the --include option has higher precedence since it comes first on the
command-line. In the manpage
(http://www.nongnu.org/rdiff-backup/rdiff-backup.1.html) there is the
example (File Selection section):
rdiff-backup --include /usr/local/bin --exclude /usr/local /usr /backup
would backup the /usr/local/bin directory (and its contents), but not
Is this what you're looking for?
Peter Bosgraaf wrote:
> I am fairly new to rdiff-backup and i'm having some troubles configuring
> the following:
> I'm trying to build and unattended backup script for our hosting
> facility. The backup is initiated from the backup server. By default i
> want to include everything from the remote server, which if i read the
> documentation correctly is default behavior when i specifiy address@hidden::/
> Now what i want to do is create an override possibility per host. I'm
> using the following syntax to (hopefully) accomplish that:
> rdiff-backup --verbosity 5 \
> --print-statistics \
> --exclude-filelist /backup/exclude/$i \
> --include-filelist /backup/include/$i \
> address@hidden::/ /backup/lun/$i
> $i is the variable for the remote host which i should backup.
> The trouble i'm experiencing is when i try to do the inverted. So what i
> thought was possible (with the same command line options) is to exclude
> everything by entering a "/" in the exclude file, and include just the
> paths i wanted to backup in the include file.
> I've been puzzling for some hours now, shifing precedence etc ...
> Could anyone show me the magic? or point me in the right direction?
> rdiff-backup-users mailing list at address@hidden
> Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Andrew Ferguson - address@hidden