From: Toni Van Remortel <toni.van.remortel@p-...> - 2007-09-13 09:36:13
Currently I use BackupPC to backup a lot of remote hosts, all with different
config. Some of these hosts need a command to run before some shares can be
I need to backup /etc, /home and /var/lib, but also need to mount
/mnt/server/data, back it up and unmount it again.
The problem now is that I can only set a DumpPreShareCmd for the entire host
and all shares, but not for each share separate.
If I set as DumpPreShareCmd '$sshPath $host /bin/mount $share', I end up
with possible double mounted /var/lib. If I set as DumpPostShareCmd
'$sshPath $host /bin/umount $share', I risk unmounting /var/lib, resulting
in a broken remote system. The mount and unmount is desired for the
/mnt/server/data shares, but not for the /etc, /home and /var/lib shares.
My current solution is to use separate hosts using the same ClientNameAlias,
but that results in a huge list of hosts (I have about 60 remote systems to
backup). Needless to say this method will result in confusing situations.
Sometimes I need to mount eg /mnt/server/data, but only need to backup
/mnt/server/data/Sales and /mnt/server/data/HR, and not the other
directories below /mnt/server/data. In that case, I now use a separate host
for every mount point that has different shares to be backed-up, with the
usage of DumpPreUserCmd and DumpPostUserCmd that mounts or unmounts
Excluding directories under /mnt/server/data is no option, as the remote
users can add their own sub-directories.
As you see: problems to be solved :-)
So it's more a feature request: please allow the usage of the UserCommands
per share instead of per host.
Toni Van Remortel
+32 3 451 92 25
Get latest updates about Open Source Projects, Conferences and News.