I have configured a server with CentOS 5.2 and am now working out a backup strategy. I plan on using Amanda as the backup application. Additionally, I am leaning towards using some USB hard drives for backup storage.
I will be swapping out one of the hard drives each week for an offsite back-up. Is it possible to make sure a particular USB hard drive is mounted to a specific mount point (maybe based on volume label or ID)?
Alternatively, what is a good strategy to use USB drives with Amanda using an off-site rotation?
I think what you want is mounting in fstab by UUID. I swiped this info (and example text) from here.
First, find out your device's UUID:
The UUID of each device is the big string of hex numbers and dashes. Once you have that, just put "UUID=857c5e63-c9be-4080-b4c2-72d606435051" into your fstab in place of the device name. Now your USB drive will always be mounted in the same place, even if you plug it into a different USB hub or have other USB devices.
Udev is going to be your friend. You are able to setup rules so that each particular drive is assigned to your specified name for it. Then your mounting scripts can handle putting each named drive into the right spot.
A good tutorial on how to do this: rename a USB drive.