Jeffrey J. Kosowsky wrote: > I wouldn't hard-wire that in because people might want different > behaviors. If you look back in the archive, you will notice that I > required similar behavior to check for a volume nfs mounted on another > server and to try to remount it if it is not mounted.
I didn't think of NFS volumes. That's another very good reason why one might want to check if a directory is available. > If Craig is interested in adding this capability, my suggestion > instead would be to make it configurable by adding it to the config.pl > file as commands analogous to DumpPreUserCmd. You would probably need > two: one for the initialization subroutine and one to run during the > main while loop. Here is one slight variation: Reuse DumpPreUserCmd. If the command returns 0, proceed with the dump, otherwise 'next'. Then, I could write: $Conf{DumpPreUserCmd} = 'if [ -d /my/external/disk ]; then exit 0; else exit 1; fi'; I your case, with NFS, you would write a script that tries to mount NFS and would return 0 or 1 depending on whether the mount succeeds. What do you think? Daniel. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/