Hi If Device 009 is your USB HD, then, your /etc/hotplug/usb/usbhd.usermap sould look like that: #usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info usbbackup 0x0003 0x04fc 0x0c25 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 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: #!bin/bash mount -t auto /dev/sd0 /mnt/backup rsync -Pavz --delete /tmp/backup /mnt/backup umount /mnt/backup 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. I think now is enough clear what do you have to do. Greetings, David Ugo Bellavance escribió: David Ferreira wrote: --
David Ferreira Dpto. de sistemas ------------------------------------------------------------------------------------------------- I Z A N E T - GLOBAL SERVICES S.L. web: http://www.izanet.com Direcciónes: Argualas nº 3 (Planta calle) - 50.012 Zaragoza Teléfono: 902 999 065 y 976 306 752 - Fax 976 306 753 -------------------------------------------------------------------------------------------------- DISCLAIMER: 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. 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. |
begin:vcard fn:David Ferreira n:Ferreira;David org:Izanet Global Services;Dpto. de sistemas adr:;;c/ Argualas 3;Zaragoza;Zaragoza;50012;Spain email;internet:dferreira@xxxxxxxxxx tel;work:976 306 752 tel;fax:976 306 753 x-mozilla-html:TRUE url:http://www.izanet.com/ version:2.1 end:vcard
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos