Backing up data over network

Discussion in 'Hardware' started by be0, Jun 26, 2009.

  1. be0

    be0 Corporal

    Hello everyone,

    I created a .bat file that copies specified folders and files from a users machine on their personal drive on the network. Here is the code behind the backup file:

    @ECHO OFF
    ECHO *****HINKLEY LIGHTING BACKUP*****
    ECHO YOUR SYSTEM IS BEING BACKED UP PLEASE DO NOT CLOSE THIS WINDOW...
    ECHO PLEASE NOTE THIS WILL TAKE A WHILE AND YOUR COMPUTER MIGHT BE RUNNING A BIT SLOWER
    xcopy /Y "C:\Documents and Settings\goran\My Documents" "H:\MyBackUP\My Documents" /S /C /Q /I
    xcopy /Y "C:\Documents and Settings\goran\Desktop" "H:\MyBackUP\Desktop" /S /C /Q /I
    xcopy /Y "C:\Documents and Settings\goran\Favorites" "H:\MyBackUP\Favorites" /S /C /Q /I

    ECHO *****HINKLEY LIGHTING BACKUP COMPLETE*****
    PAUSE


    then I scheduled an automated task that will run this .BAT file once a week.

    The problem is that the file runs silently (It does not pop up on the screen)
    And also the computer gets really really slow after the job finishes.

    Does anyone have a better idea how to do this or what I can add to the batch file to increase performance?
     
  2. techsent

    techsent Corporal

    Hi be0,

    This has worked well for me in the past:

    xcopy /Y "C:\Documents and Settings\%username%\Favorites" "\\backuppc\shareddir\%username%\Favorites" /E /I
    exit

    the exit command ensures that the dos window closes upon completion.

    also, the cmd window displays when the batch is running so I created a shortcut from the bat file, change the properties in the shortcut to run minimized. schedule the shortcut to execute instead of the actual bat file.

    You can then rename the shortcut file name to some thing like:

    Backup.bat - File backup is in progress, please re-minimize this window.

    so if the user clicks on the window they can read the message in its title bar.

    also, I scheduled the backup at lunch time.

    Techsent
     
    Last edited: Jun 27, 2009
  3. be0

    be0 Corporal

    Thanks... :)
    Good stuff.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds