Hi,

Tony van der Hoff wrote:
Runnung Squeeze here. I have a script which runs nightly, to backup certain directories to a USB disk, which does a fine job, provided the disk is mounted.

Why not run blkid and if you find the "right" device by it's UUID, then mount it in your backup script. Do the backup and then umount the device.

If the right device is not found, report that and quit the script.

Using the UUID via blkid is important because you want to be sure you have the right backup device. A little harder if you have multiple USBs for the backup, but then you could cater all of your known UUIDs

--
Kind Regards
AndrewM

Andrew McGlashan
Broadband Solutions now including VoIP


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e1da81b.3090...@affinityvision.com.au

Reply via email to