dcsimg
www.webdeveloper.com
Results 1 to 10 of 10

Thread: USB pen drive Syncing with folder

  1. #1
    Join Date
    Jul 2008
    Posts
    57

    USB pen drive Syncing with folder

    I currently have a computer that backs up a mysql database everyday to a folder on it harddrive.

    I am in need of a way for the folder in which all the backed up data is stored to automatically sync with a pen drive thats plugged into the computer

    Any ideas would be great
    Last edited by Chris Crew; 01-14-2009 at 07:37 AM. Reason: spelling

  2. #2
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Windows or Linux?
    54 68 65 42 65 61 72 4D 61 79

  3. #3
    Join Date
    Jul 2008
    Posts
    57
    Windows xp forgot about that

  4. #4
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Shouldn't be a hard task then to create a bat or cmd file that contains a contains a statement similar to:

    xcopy sourceDir penDirectory /S

    and then schedule it as part of your backup or to run at certain time of the day using the Windows scheduler.
    54 68 65 42 65 61 72 4D 61 79

  5. #5
    Join Date
    Jul 2008
    Posts
    57
    Never thought of a bat file with windows scheduler.

    Thanks will set it up tonight

  6. #6
    Join Date
    Jan 2009
    Location
    Insanity
    Posts
    1,131
    Do not forget that a pen drive can be set up to "Autorun" on insert... So set up the pen drive to auto run a bat file on the pen drive to do as previous poster has suggested, IMHO is a neater method of skinning the same cat.

  7. #7
    Join Date
    Jul 2008
    Posts
    57
    I would of set it up like that but the person I am making the system for will forget to put the USB pen in to copy db backups.

    So he is going to keep it in all the time and all it is going to be used for is to store the db backups

  8. #8
    Join Date
    Jan 2009
    Location
    Insanity
    Posts
    1,131
    Then let them, then they learn from the serious mistake of forgetting.

  9. #9
    Join Date
    Jun 2009
    Posts
    1
    How can i delete ii in my pen drive and partition? When i double click my pen drive and my hdd partitions its opening on another window.b`coz it has Autorun.inf file.i want to delete it.how can i do it?please help me about this matter.
    Last edited by marchelyx; 06-10-2009 at 03:31 AM.

  10. #10
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Disable autorun (in explorer, right click on the drive, select properties and go to the Auotplay tab). Then you'll be able to get to the autorun.inf and modify or delete it.
    54 68 65 42 65 61 72 4D 61 79

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles