ROBOCOPY - Create Backup Script

Page 11 of 32 FirstFirst ... 91011121321 ... LastLast

  1. Posts : 21
    Win7 64bit
       #100

    Golden said:
    Hi,

    Is this path correct?

    C:\Users\JamesAppData\Local\Microsoft\Outlook

    or should it be

    C:\Users\James\AppData\Local\Microsoft\Outlook

    You can edit the BAT file and correct the path if required, and try it again please?
    Thank you Golden, yes i notice this befoer and i edite the script somehow it also doesn't have access to some folder like my Pictures ect.... it says No access to this folder

    thank you

    is it possible to add some information to the scripte? like informing the user that the back up is processes and please wait...?
    Last edited by jamerson; 30 Jul 2012 at 07:36.
      My Computer


  2. Posts : 11
    Windows 7 Ultimate 32bit
       #101

    2 questions for Robocopy


    Golden, First off, thanks for the original tutorial. A wonderful help indeed. I'd especially like to thank you, however, for all of your follow up in the thread. Your diligence is greatly appreciated.

    I'm planning to implement Robocopy for a small school so that the documents for every faculty member (about 30) will back up to the server when they login or logoff. I have two questions.

    1: If the laptop is offsite and not connected to the network, will the script fail gracefully and quickly, or will it hang up the user? Do I need to implement a network check before the script runs?

    2: If a user is in a great rush, can they just close the window for the Robocopy, thus allowing the user to shut down faster? Again, does it fail gracefully, or will it keep retrying, tying up the user?

    Many many thanks for your assistance.

    Brady
      My Computer


  3. Posts : 11
    Windows 7 Ultimate 32bit
       #102

    Also


    Our ultimate goal is to have user's data backup on login and logoff to the server. No pst files, mostly documents, spreadsheets, and pictures. WIndows 7 clients backing up to Server 2008.

    Below is my 1st attempt with Robocopy, and it seems to be working well. Would you mind proofing it for any glaring errors or omissions?

    robocopy c:\users\bgilbert2 \\servername\faculty\bgilbert2 /e /np /tee /mt /XA:SH /XJ /XD AppData /log:backup_log.txt
      My Computer


  4. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #103

    Hi and welcome to SevenForums,

    Your backup script looks good - the only thing I would change is the "retry/time-out" option. If the user is using their laptop from home and is not connected to the network, and they then try run ROBOCOPY, it will by default attempt to reconnect up to 1 million times, with a 30 second wait time between reconnections - these are the default values.

    A better option is to limit this to something like 3 retrys, with a 10 second wait time between each retry. In your example, it would look like this: (shown in red below)

    r:3 = retry 3 times
    w:10 = wait 10 seconds between each retry

    Code:
     
    robocopy c:\users\bgilbert2 \\servername\faculty\bgilbert2 /e /np /tee /mt /r:3 /w:10 /XA:SH /XJ /XD AppData /log:backup_log.txt
    To answer your other questions:

    1. If the laptop is offsite and ROBOCOPY runs, then YES, it will fail gracefully and quickly - limiting the retry options will ease that failure too.

    2. If they close the window, then they also close the ROBOCOPY function, and that will also fail gracefully and quickly.

    Regards,
    Golden
      My Computer


  5. Posts : 11
    Windows 7 Ultimate 32bit
       #104

    Wonderful! Thanks. In testing today it seemed to work great. The only thing I noticed was that a hidden Recycler folder was getting Robocopied even though files with the 'hidden' attribute shouldn't go. Does Recycler have unique properties that need to be handled differently?
      My Computer


  6. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #105

    Hi,

    Mmm, I don't know to be perferfectly honest.......have you tried excluding that using wildcards?

    XF = exclude file

    /XF RECYCLER* or whatever the recycler is called?

    Regards,
    Golden
      My Computer


  7. Posts : 3
    Windows 7 Home Premium x64
       #106

    Robocopy.bat Does Not Work


    I have created a Backup Script, but it does not work. I can copy that script and open a CMD window and paste it in and it executes and backs up. It looks like it is working, but it is in a loop.
    How can I fix this?

    Below is the content of: Robocopy.bat

    robocopy B:\jkitc\Documents\Jarte G:\RobocopyBackups\Jarte /e /mir /np /log:backup_log.txt
    pause
      My Computer


  8. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #107

    Hi,

    I don't see a problem with that script - what is in the backup_log.txt file?

    Regards,
    Golden
      My Computer


  9. Posts : 3
    Windows 7 Home Premium x64
       #108

    Nothing in the log file when I run the script in Robocopy.bat. If I run the script in a CMD prompt then the log file is full and tells the whole story. So apparently the script is fine, but something is preventing me from executing the batch file.
      My Computer


  10. Posts : 19,383
    Windows 10 Pro x64 ; Xubuntu x64
    Thread Starter
       #109

    Save the .BAT file to your desktop, then right-click on it and choose the 'Run as Administrator' option.

    Regards,
    Golden
      My Computer


 
Page 11 of 32 FirstFirst ... 91011121321 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:54.
Find Us