Hi all:

Our current backup system (hdup) allows the user to prune directories
from the backups. So I can backup the /home share and have a user
create

  /home/user/data/lots_of_junk_data_that_doesnt_need_backup/.nobackup.

that file will prevent the backup of

  /home/user/data/lots_of_junk_data_that_doesnt_need_backup

recursively.  To do this with backuppc, I was planning on using a
DumpPreShareCmd to create /tmp/share.backup.exclude.<random_id> file
that looks like:

   /user/data/lots_of_junk_data_that_doesnt_need_backup

and changing the rsync command options to include:

  --exclude-from /tmp/share.backup.exclude

Does anybody see an issue with this? Does anybody do something
similar?

It would be useful to have the main config file settings available in
the per host config files. That way a per host config file could use a
default "homes.pm" file that adds /homes to the default share list
from config.pl and could also augment the default RsyncArgs to add the
--exclude-file option as well as augmenting the DumpPreShareCmd. So you
could do a:

  $Conf{DumpPreShareCmd} .= "&& /etc/admin/bin/mkdirexclude $share";

-- 
                                -- rouilj

John Rouillard
System Administrator
Renesys Corporation
603-643-9300 x 111

-------------------------------------------------------------------------
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]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to