Results 1 to 3 of 3
I have to set up a cronjob that will copy files from a folder onto 2 usb sticks every 30min.
Basically only 1usb stick will be connected at a time, ...
- 10-15-2008 #1Just Joined!
- Join Date
- Oct 2008
- Posts
- 2
Cronjob file copying
I have to set up a cronjob that will copy files from a folder onto 2 usb sticks every 30min.
Basically only 1usb stick will be connected at a time, then someone will come, unplug the stick and plug the other one instead.
I would like to know how to create a folder that will always point to the sticks. So in my script shell i have something like:
cp -uf /whatever/content/* /Media/UsbStick/
And that it will work whatever stick is plugged in, in whatever usb port.
I am actually gonna receive the sticks anytime soon, I haven't tried anything yet, but I can feel its not gonna be as easy as I think ^^
Any idea?
- 10-15-2008 #2Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
This is not really a programming question. You need to configure the automounter to ensure that the device is always mounted in the same directory.
- 10-15-2008 #3Just Joined!
- Join Date
- Oct 2008
- Posts
- 2
ok sorry if an admin can move my post in the right place.... or can i do it myself? Im new-from-today to this forums so...
I look into the automounter as you said! thx


Reply With Quote