[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: |
Peter Bosgraaf |
Subject: |
Re: [rdiff-backup-users] Troubles with --include-list and --exclude-list options |
Date: |
Wed, 3 May 2006 09:58:25 +0200 |
User-agent: |
Mutt/1.5.11 |
Hi Andrew,
Thanks the quick response.
On Wed, May 03, 2006 at 12:59:50AM -0400, Andrew Ferguson wrote:
>
> 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.
>
Actually this is what i tried in the the first place.
If you take the example from my post to Roland:
rdiff-backup --include-filelist include.txt --exclude-filelist
exclude.txt address@hidden::/ /backup/lun/my.webserver.com
include.txt
/data
exclude.txt
/
rdiff-backup _will_ create a /backup/lun/my.webserver.com/data
directory. But the directory created is completely empty, so it seems
like no files are backed-up at all.
Best regards,
--
---
Peter Bosgraaf // CTO // WIAF
PB2003-RIPE // T: 06-27070596 // F: 0515-569587
PGP KeyID: 0x03B8A390 (hkp://pgp.mit.edu)
Fingerprint: 5EAE B983 453A B640 F7BA 74C7 B6FA 854D 03B8 A390
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea.
pgpymSQViBjlY.pgp
Description: PGP signature