[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Troubles with --include-list and --exclude-list
From: |
Andrew Ferguson |
Subject: |
Re: [rdiff-backup-users] Troubles with --include-list and --exclude-list options |
Date: |
Wed, 03 May 2006 00:59:50 -0400 |
User-agent: |
Thunderbird 1.5.0.2 (Macintosh/20060308) |
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 \
address@hidden::/ /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 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?
>
> Thanks!
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rdiff-backup-users mailing list at address@hidden
> http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
--
Andrew Ferguson - address@hidden