Toni,

> So it's more a feature request: please allow the usage of the UserCommands
> per share instead of per host.

At some point writing a short script is easier and more flexible
than endless numbers of configuration variables.

You should set DumpPreShareCmd to a script that you provide and
pass it the arguments you need:

    $Conf{DumpPreShareCmd} = "/path/to/mySmartMountScript $host $share";

You can use your favorite scripting language (bash, perl, python etc)
to run the right ssh mount command based on $share (or not, as the
case may be).  Similarly for DumpPostShareCmd.

BTW, you could also use an automounter to avoid the application level
having to worry about mount/umount.

Craig

-------------------------------------------------------------------------
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