On 12/01/18 15:39, Grant Edwards wrote:
>> I usually also include a check to ensure that some file/directory
>> > exists which I expect to be on the drive, which prevents the backup
>> > script from dumping a full backup into your mountpoint if it isn't
>> > mounted (possibly on a filesystem with insufficient space -

> Yep, that's being done.  The backup won't attempt to run if the
> external drive isn't mounted.

Dunno quite how it works, but you could automate everything through
udev. When I stick something in, KDE offers to mount it for me, in
/run/media/$USER/abcd-efgh.

I think that last bit is unique to the media, and the same every time,
so you could make udev detect that something's been plugged in and, if
it's your backup drive, auto-run the backup.

Or, of course, if your backup expects the drive at that location, it
simply refuses to run if that location doesn't exist.

Cheers,
Wol

Reply via email to