Craig,

On Sep 20, 2007, at 8:27 PM, Craig Barratt wrote:

> Kimball writes:
>
>> Hokay, I'm stuck.  I give.  I need help.
>>
>> The documentation for UserCmdCheckStatus says:
>>
>> [snip]
>>
>> But it still runs the backup (and writes over my mount point for  
>> my external drive)
>>
>> I've verified that the script returns a non-zero when the drive is  
>> not present:
>>
>> sillyHost:~ backuppc$ /usr/bin/ssh -q -x -l kimball 192.168.0.21 / 
>> usr/local/bin/checkHonker
>> Checking for Honker
>> Honker NOT mounted
>> sillyHost:~ backuppc $ echo $?
>> 1
>>
>> What am I missing?
>
> What version of BackupPC are you running?

Thanks for the reply, but I discovered (and later discussed on this  
list) what the problem was:  My script was checking for the existence  
of the backup volume, which does not exist on Mac OS X when it is  
unplugged (it's a firewire disk, and when unplugged, /Volumes/Honker  
disappears).  However, before this script is run as the before dump  
check, backuppc checks that /Volumes/Honker/Backups (my preferred  
backup location) exists, and creates it if it does not exist - only  
it gets created on the local drive, because the firewire drive is  
unplugged.  Thus, my script was always returning a successful return  
value.  See later posts from me about possible solutions and work- 
arounds.

Thanks!

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

Reply via email to