Hi Peter,
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 \
--print-statistics \
--include-filelist /backup/include/$i \
--exclude-filelist /backup/exclude/$i \
[EMAIL PROTECTED]::/ /backup/lun/$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
/usr/local/doc.
Is this what you're looking for?
Andrew
Peter Bosgraaf wrote:
> Hi,
>
> 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 [EMAIL
> PROTECTED]::/
>
> 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 \
> [EMAIL PROTECTED]::/ /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?
>
> Thanks!
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rdiff-backup-users mailing list at [email protected]
> http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
--
Andrew Ferguson - [EMAIL PROTECTED]
_______________________________________________
rdiff-backup-users mailing list at [email protected]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki