Find the answer to your Linux question:
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, ...
  1. #1
    Just 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?

  2. #2
    Linux 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.

  3. #3
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...