<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi <br>
<br>
If Device 009 is your USB HD, then, your /etc/hotplug/usb/usbhd.usermap
sould look like that:<br>
<br>
<font size="1"><font size="2"><span
style="font-family: courier new,courier,mono;">#usb module
match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi
bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass
bInterfaceSubClass bInterfaceProtocol driver_info</span></font></font><br>
usbbackup 0x0003 0x04fc 0x0c25 0x0000 0x0000 0x00
0x00 0x00 0x00 0x00 0x00 0x00000000<br>
<br>
<br>
Well, now the script. only one question, Do you use backup exec to
write on linuxbox fs and then, rsync to the usb hd?, or do you want to
backup exec directly backup to the usb hd? If you do a rsync from local
linux fs to the USB disk, you can umount the fs in the script when it's
finish. If you choose the second option (Backup diretly to the usb hd)
you sould find other way to umount the usb drive once you have finished
backup (I think the easiest way is a cron job). I think first option
is beter, so you can use this pseudo-script in /etc/hotplug/usb/usbhd:<br>
<br>
#!bin/bash<br>
mount -t auto /dev/sd0 /mnt/backup<br>
rsync -Pavz --delete /tmp/backup /mnt/backup<br>
umount /mnt/backup<br>
<br>
If you prefere second option, you must made accesible /mnt/backup as
you prefer to your windows box, quit rsync and umount from script, and
create a cron job to umount the usb drive.<br>
I think now is enough clear what do you have to do.<br>
<br>
Greetings,<br>
David<br>
<br>
<br>
Ugo Bellavance escribió:
<blockquote cite="mid:fhuj7d$frr$1@ger.gmane.org" type="cite">David
Ferreira wrote:
<br>
<blockquote type="cite">I've used simple scripts for similar backup
system. I used hotplug facilities and rsync to avoid copying inecesary
data.
<br>
You must see the USB id which lsusb
<br>
<br>
in /etc/hotplug/usb/ create the folowing two files:
<br>
usbhd.usermap containing the folowing line:
<br>
usbbackup 0x0003 0x05e3 0x0702 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00
0x00 0x00000000
<br>
</blockquote>
<br>
I don't need the script, I just need the windows box to be able to
write to the external HDD, and that the external HDD can be changed
(not when writing, of course) without any manual intervention.
<br>
<br>
This is the output of lsusb
<br>
<br>
[root@server]lsusb
<br>
Unknown line at line 5959
<br>
Unknown line at line 5960
<br>
Unknown line at line 5961
<br>
Unknown line at line 5962
<br>
Unknown line at line 5963
<br>
Unknown line at line 5964
<br>
Unknown line at line 5965
<br>
Unknown line at line 5966
<br>
Unknown line at line 5967
<br>
Unknown line at line 5968
<br>
Unknown line at line 5969
<br>
Unknown line at line 5970
<br>
Bus 004 Device 001: ID 0000:0000
<br>
Bus 003 Device 001: ID 0000:0000
<br>
Bus 002 Device 001: ID 0000:0000
<br>
Bus 001 Device 009: ID 04fc:0c25 Sunplus Technology Co., Ltd
<br>
Bus 001 Device 001: ID 0000:0000
<br>
<br>
The device is most likely 001/009 (Sunplus).
<br>
<br>
lsusb -v shows this (stripped output):
<br>
<br>
Bus 001 Device 009: ID 04fc:0c25 Sunplus Technology Co., Ltd
<br>
Device Descriptor:
<br>
bLength 18
<br>
bDescriptorType 1
<br>
bcdUSB 2.00
<br>
bDeviceClass 0 (Defined at Interface level)
<br>
bDeviceSubClass 0
<br>
bDeviceProtocol 0
<br>
bMaxPacketSize0 64
<br>
idVendor 0x04fc Sunplus Technology Co., Ltd
<br>
idProduct 0x0c25
<br>
bcdDevice 1.03
<br>
iManufacturer 2 Sunplus Technology Inc.
<br>
iProduct 3 USB to Serial-ATA bridge
<br>
iSerial 1 WDC WD2500 WD-WXE807734118
<br>
bNumConfigurations 1
<br>
<br>
How would I build my usbhd.usermap file?
<br>
<br>
Regards,
<br>
Ugo
<br>
<br>
_______________________________________________
<br>
CentOS mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
David Ferreira
<br>
Dpto. de sistemas
<br>
-------------------------------------------------------------------------------------------------<br>
<font face="3D"tahoma"" size="3D5">I Z A N E T - GLOBAL SERVICES S.L.<br>
</font> <br>
web:
<a href="3D%22http://www.izanet.com/%22" eudora="3D"autourl""><font
color="#3d00ff"><u>http://www.izanet.com</u></font></a>
<br>
Direcciónes: Argualas nº 3 (Planta calle) - 50.012 Zaragoza<br>
Teléfono: 902 999 065 y 976 306 752 - Fax 976 306 753<br>
--------------------------------------------------------------------------------------------------
<br>
<br>
<font size="3D2"><b>DISCLAIMER:<br>
</b>Este mensaje se dirige exclusivamente a su destinatario y puede
contener informacion privilegiada o confidencial. Si no es vd. el
destinatario indicado, queda notificado de que la utilizacion,
divulgacion y/o copia sin autorizacion esta prohibida en virtud de la
legislacion vigente. Si ha recibido este mensaje por error, le rogamos
que nos lo comunique inmediatamente por esta misma via y proceda a su
destruccion. <br>
<br>
This message is intended exclusively for its addressee and may contain
information that is CONFIDENTIAL and protected by professional
privilege. If you are not the intended recipient you are hereby
notified that any dissemination, copy or disclosure of this
communication is strictly prohibited by law. If this message has been
received in error, please immediately notify us via e-mail and delete
it.<br>
</font></div>
</body>
</html>