Yep; I always leave a "STOP" file in the mount directory, and often a
"GO" in te mounted volume itself. Makes checking easy :-)

On Fri, Sep 13, 2013 at 12:03 PM, Roger Searle <[email protected]> wrote:
> I learnt from someone here, think it was Jim from memory, that I can do
> something like this in my script:
>
> # don't proceed if usb drive not mounted as/where expected:
> if [ -e /media/truecrypt1/STOP ]
>    then
>    echo
>    echo +++++++++++++++++++++++++++++
>    echo Backup drive not mounted?
>    echo Script exiting, do a check!!
>    echo +++++++++++++++++++++++++++++
>    echo
>    exit 1
> fi
>
> which of course assumes you know the drive will be mounted in
> /media/truecrypt1 and that you have previously created the file named STOP
> when it is not mounted.
>
> Cheers,
> Roger
>
>
>
>
> On 13/09/13 11:55, Robert Fisher wrote:
>>
>> Here is how to suck eggs Grandma:-
>>
>> Do not run rsync to backup files to a portable drive without first
>> checking that the drive is mounted.
>>
>> Filling up the root partition is not easy to fix.
>>
>> I know this from recent experience.
>>
>> --
>> Robert Fisher
>>
>>
>> _______________________________________________
>> Linux-users mailing list
>> [email protected]
>> http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
>
>
> _______________________________________________
> Linux-users mailing list
> [email protected]
> http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to