Hi all,

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
backed up.

Ex:
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
/mnt/server/data.
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
Precision Operations
+32 3 451 92 25


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-devel mailing list
BackupPC-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-devel
http://backuppc.sourceforge.net/

Reply via email to