Re: USB drive as a tape device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Edwards, David (JTS)
Date: Thursday, August 16, 2007 - 2:07 am

> -----Original Message-----

Ahhh, another interesting tool, thanks.  But I actually
need to work out the device name for a disk plugged into
a particular USB port.  I need to keep different backup sets
on separate USB drives and track which is which.

So, I've got some USB cables permanently plugged into
the server labelled (say):
disk_1 (to be used for backup set_1)
disk_2 (to be used for backup set_2)
etc..

So, I when the backup script runs to backup (say) set_1,
I need to figure out the disk device name (eg sd0, sd1 etc),
that is currently connected to the cable labelled "disk_1".

I can then mount the USB disk partition, dump the files and
unmount it.  As the disks are replaced daily (and moved
off-site), the device names will be a moving target.

I can do this now using usbdevs and dmesg output but it's
a bit messy and relies on a circular logging buffer (dmesg).

This is no biggy, I'm reasonably happy with the script I've
got, I'm just wondering if I've missed another method to
do this that's simple and possibly obvious to everyone
else :-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB drive as a tape device, Edwards, David (JTS), (Tue Aug 14, 4:10 pm)
Re: USB drive as a tape device, Otto Moerbeek, (Tue Aug 14, 11:55 pm)
Re: USB drive as a tape device, Edwards, David (JTS), (Wed Aug 15, 4:23 pm)
Re: USB drive as a tape device, Stuart Henderson, (Thu Aug 16, 1:46 am)
Re: USB drive as a tape device, Edwards, David (JTS), (Thu Aug 16, 2:07 am)
Re: USB drive as a tape device, Joachim Schipper, (Thu Aug 16, 5:43 am)