John Rouillard
2007-11-06 23:43:18 UTC
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";
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
-- rouilj
John Rouillard
System Administrator
Renesys Corporation
603-643-9300 x 111