On Fri, Oct 24, 2014 at 1:41 PM, Tilghman Lesher <[email protected]>
wrote:

> I have an issue for which I haven't been able to come up with a good
> solution.  We have a backup solution whereby multiple disks, attached
> via USB, are used for backups.  Normally, those disks are mounted
> automatically with udev, so backups can proceed normally.  The problem
> comes in when the disks are not attached, and the backup process runs,
> writing to the same directory, which fills up the root disk.
>

There is a "mountpoint" command (http://linux.die.net/man/1/mountpoint). It
tells if a directory is currently used as a mount point. Can the backup
process test the directory before running?

-- 
Robert Wohlfarth

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to