[lug] Automated USB Drive Backup

Stephen Queen svqueen at gmail.com
Sat Oct 27 07:48:03 MDT 2007


>  It may be cool, but potentially complex. What happens
> when you plug in a usb drive that isn't one of your backups?
> If both back ups are plugged in at the same time? If ...

You can get the uuid of an ext2/ext3 filesystem by doing a
tune2fs -l

I'm sure with some investigation you could also do this with other file systems.

Write the fstab setup to mount by-uuid. The fstab entry would look
something like this

/dev/disk/by-uuid/f4e64e54-20f2-4033-a393-84e0701bdd3e
/mnt/usb-drive \     auto        defaults     0   0

This could be a simple script.

Steve Queen



More information about the LUG mailing list