Thanks for your help all.
Quote:
You could probably fork and return and then wait for some time and try the copy, as a thought.
|
No offense Matir , but ewww Ughhh. ... :P
T3Slider - awesome .. it worked !
I am just posting what I did here ... someone else on searching can use it (as well as you guys can comment)
to start at console -
Quote:
lshal -m
Start monitoring devicelist:
-------------------------------------------------
|
and plug in your usb key.
you might get something like below
Quote:
-------------------------------------------------
14:33:14.801: usb_device_90c_1000_AA04012700007909 added
14:33:14.817: usb_device_90c_1000_AA04012700007909_usbraw added
14:33:14.850: usb_device_90c_1000_AA04012700007909_if0 added
14:33:19.827: usb_device_90c_1000_AA04012700007909_if0_scsi_host added
14:33:19.829: usb_device_90c_1000_AA04012700007909_if0_scsi_host_scsi_device_lun0 added
14:33:19.832: usb_device_90c_1000_AA04012700007909_if0_scsi_host_scsi_device_lun0_scsi_generic added
14:33:19.865: storage_serial_USB_FLASH_DISK_AA04012700007909_0_0 added
14:33:19.882: volume_uuid_D8C6_02E6 added
|
The key thing is volume_uuid_D8C6_02E6 .. we will use it later on (the value after uuid will be different for you)
Now go to slackbuilds.org and get the builds for ivman and pmount and install both.
Now
Quote:
vim ~/.ivman/IvmConfigActions.xml
|
And add lines like
Quote:
<ivm:Match name="hal.volume.uuid" value="D8C6-02E6">
<ivm:Option name="mount" value="true" />
<ivm:Option name="exec" value="cp $hal.volume.mount_point$/backup/* /targetbackuppath/ -u " />
<ivm:Option name="exec" value="pumount $hal.block.device$" />
</ivm:Match>
|
Note that the line <ivm:Option name="mount" value="true" > is also there at the top of the same file .. I commented that one out as I didn't want ivman to automount every USB drive thats plugged in. If you don't remove it there then don't add it here.
Also note how we matched the uuid noted down earlier .
I also automatically umount after the backup is done .. I am just more comfortable with some setup like this.
Now just add ivman to your startup .. for fluxbox (like me) , I added to the ~/.fluxbox/startup file. I didn't add it to rc.local cos I don't think above will work well if I run ivman as root.