Ambrose, On Sep 20, 2007, at 8:43 PM, Ambrose Li wrote:
> On 20/09/2007, Stephen Joyce <[EMAIL PROTECTED]> wrote: >> Use 'mount' instead of checking for directory existence to >> determine if the >> filesystem is mounted and return the corresponding exit status? (if >> backuppc has created the directory structure on the main drive >> instead of >> a mounted one, it's safe to remove inside the script. Use 'rm' on >> each >> level working your way up, NOT 'rm -rf' on the parent, if you're >> paranoid >> or don't fully trust your script.) >> >> Or am I misunderstanding the problem? > > I think the problem is that MacOS X uses an automounter, and what > BackupPC > is doing (viz. creating the directory before calling the checks) is > creating a > situation where the automounter *always* mounts the drive in the > wrong place. > So no amount of checks is going to work because the config is > guaranteed to > be wrong. Bingo. A solution would be to either have backuppc wait to perform the creation of the backup filesystem after the checks have been run, or to create another check that will run before backuppc tries to do anything at all - including creation of the backup filesystem. -- Kimball ------------------------------------------------------------------------- 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-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/