View Full Version : a program/code that allows to copy all data from flash stick to hdd when inserted
meborc
May 20th, 2008, 02:54 PM
the title says it all... i constantly transfer files to and from my computer... i would like to find a way to automatically copy all data from a usb stick to a specified hdd folder when stick is inserted
is that too complicated to achieve? any ideas?
inaety
May 20th, 2008, 03:08 PM
a program could easily be made but a command would probably be just as easy
sudo cp "/mnt point of usb" "/folder"
dtmilano
May 20th, 2008, 03:16 PM
If you are synchronizing them in any way, 'unison' is worth a try.
panayk
May 20th, 2008, 03:54 PM
Since you probably don't want to run the command manually each time you mount the device, this will be useful:
http://www.gradstein.info/hardware/how-to-automatically-run-a-script-after-inserting-a-usb-device-on-ubuntu/
meborc
May 22nd, 2008, 04:32 AM
Since you probably don't want to run the command manually each time you mount the device, this will be useful:
http://www.gradstein.info/hardware/how-to-automatically-run-a-script-after-inserting-a-usb-device-on-ubuntu/
thank you, just what i was looking for! :)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.