Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-21 Thread Rich Rauenzahn
Ambrose Li wrote: On 21/09/2007, Rich Rauenzahn <[EMAIL PROTECTED]> wrote: Not familiar with MACs -- but -- shouldn't the mountpoint have permissions such that only the OS can add directories? That's not exactly how things work on Macs. They have a /tmp-like directory /Volumes in whi

Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-21 Thread Ambrose Li
On 21/09/2007, Rich Rauenzahn <[EMAIL PROTECTED]> wrote: > Not familiar with MACs -- but -- shouldn't the mountpoint have > permissions such that only the OS can add directories? That's not exactly how things work on Macs. They have a /tmp-like directory /Volumes in which mount points can be creat

Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-21 Thread Rich Rauenzahn
Kimball Larsen wrote: > Hey, that's a good idea. You certainly did not misunderstand the > problem, and I believe that will work. I do wish that there was a > way to prevent backuppc from even creating the filesystem in the > first place, but having a script clean it up is ok. > > Not

Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-21 Thread Rob Owens
I've used the following method before to check if a filesystem is mounted: 1) put a hidden file in the mounted filesystem, for instance .goodfile.txt 2) put something like this in a script: if [ -f /path/to/filesystem/.goodfile.txt ] then echo "filesystem is mounted proper

Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-20 Thread Kimball Larsen
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

Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-20 Thread Kimball Larsen
Stephen, On Sep 20, 2007, at 8:18 PM, Stephen Joyce 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 moun

Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-20 Thread Ambrose Li
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

Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-20 Thread Stephen Joyce
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

Re: [BackupPC-users] UserCmdCheckStatus not working?

2007-09-20 Thread Kimball Larsen
Ok, I've done a bunch more research into this, and discovered the problem: backuppc creates the target directories for the backup destination BEFORE it calls BackupPC_dump, so my pre conditions are always returning true, because BackupPC just created the necessary file structure. So, I'

[BackupPC-users] UserCmdCheckStatus not working?

2007-09-20 Thread Kimball Larsen
(Sorry for the re-post - I realized I forgot to put on a subject last time) Hokay, I'm stuck. I give. I need help. The documentation for UserCmdCheckStatus says: "Whether the exit status of each PreUserCmd and PostUserCmd is checked. "If set and the Dump/Restore/Archive Pre/Post