On Feb 14, 2008, at 1:01 PM, Chris Francy wrote:

}} How can I exclude all the other foldrs in the system and include only 1?
}}
}} It can't be in this case done by manually excluding all the other
folders in default.conf.

Do you mean you don't want to explicitly exclude all the other
folders?  You can exclude everything, then include the specific
directories you want.

Here is a vault config that I believe would do something similar to
what you wanted.  Basically I exclude everything, then include the two
folders I want.  The below will give me a backup of /etc and
/var/backups.

client:192.168.12.43
rsh: /etc/dirvish/dirvish-ssh.sh
tree: /
exclude:
+ /etc/
+ /etc/**
+ /var/
+ /var/backups/
+ /var/backups/**
- *
index: gzip
image-default: %Y%m%d%H

I've usually seen this a bit different, but if this is in fact backing up only /etc and /var/backups then I guess your way must work, but the way it looks to me, it looks like its backing up all of /var, because you don't exclude /var/* after including /var/backups.

Here's a script from Yoav Klein to dynamically create these rulesets:

http://www.dirvish.org/pipermail/dirvish/2007-April/001294.html

For your example, it would write the following to the exclude file dirvish passes to rsync:

+ /etc
+ /var
+ /var/backups
- /var/*
- /*

--
Eric Searcy
OSU Open Source Lab




Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to