Hi,
Rob Owens wrote on 13.08.2007 at 07:08:33 [Re: [BackupPC-users] questions about
rsync excludes]:
>
> Anyway, the answer to my own question is that $Conf{BackupFilesExclude}
> does the same thing as putting the following into the $Conf{RsyncArgs}
> '--exclude', '/somedir',
... which should be '/music' in your case, not '/home/music' or 'music',
because it's interpreted relative to the "share name", as the rsync man
page and the default BackupPC global config file describe, right?
Some reasons for putting it in BackupFilesExclude instead of RsyncArgs:
- it will continue working if you change the transfer method
- it is simpler, because you don't need to read the rsync man page but
just the description in the default global config file, which you need
to read anyway
- it is more logical, because you are telling BackupPC what it's not
supposed to back up, not what the general remote rsync invokation is
(meaning you or someone else will more easily understand what your
config file does at some point in the future)
- includes via BackupFilesOnly work in the same way, whereas '--include'
won't mean "only these files" without the magic BackupPC performs for you
- you can exclude different files for each "share"; if you were so inclined,
you could exclude '/home/music' but not '/srv/music' (if '/home' and
'/srv' are two "shares" you are backing up). That does not work with
RsyncArgs.
Regards,
Holger
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/