ROBOCOPY - Create Backup Script

Page 8 of 32 FirstFirst ... 67891018 ... LastLast

  1. Posts : 9
    Win 7 64 bit
       #70

    You are free, this isnt a robocopy problem. I deleted the backup folder, ran your command line. Backed up 16 gigs . I access drive and do properties , 16 gigs, open folder, empty.Ive been resetting security right and all, its not empty, i just cant see it. Thanks for your help
      My Computer


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

    No worries Andy, although I would be happier if you were able to see the contents.

    Can I make a suggestion?

    Make a new thread under the General Discussion area, posting as much detail about the drive and also your system. Use this to gather the information:

    System Info - See Your System Specs

    I am confident that this will be solved very quickly. In fact, I'll get some specialists in this area to look at it for you if you like.

    Regards,
    Golden
      My Computer


  3. bls
    Posts : 1
    Win 7 Ultimate x64
       #72

    robocopy /mir switch


    Hi Golden

    Just curious... If someone is running a task and using the /mir option and decides to plug in a new backup device (larger HDD for instance) which happens to be freshly formatted, will that wipe their whole source directory or is there some sort of destination checking that happens first?

    Thanks
    B
      My Computer


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

    Hi,

    No, the source directory stays intact since there is no destination against which to mirror.

    All that happens in this case, is that the source directory is copied to the newly formattted destination device - in effect the /mir switch is ignored since there is nothing to mirror.

    The secret to working with the /mir switch is this : if you have a folders or files that are no longer required as part of your backup, do the following:

    1. Delete the folders/files at the SOURCE
    2. Run ROBOCOPY to mirror the DESTINATION to the SOURCE

    Never delete these folders/files at the backup, and then run ROBOCOPY - always follow steps 1 and 2 as shown above.

    Regards,
    Golden
      My Computer


  5. Posts : 78
    Win 7/Pro 64-bit
       #74

    Robocopy: Access Denied


    Golden, here is my batch file:
    robocopy e: f: /E /tee /log:f:/robocopy.log /mt
    pause

    As it progresses I get the following error message:

    *EXTRA Dir -1 F:\MSOCache\
    2012/05/26 20:48:19 ERROR 5 (0x00000005) Accessing Destination Directory F:\$RECYCLE.BIN\
    Access is denied.
    Waiting 30 seconds...


    My system drive is C: ... I use the Western Digital version of Acronis True Image to back it up to D: (with success ... my BIOS let's me boot from any disk drive).

    E: is my data drive, and F: is my backup to E:.

    Any suggestions?
      My Computer


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

    Hi,

    There is no need to backup the Recycle bin, Windows treats that differently from other user folders, which is why I suspect you are getting that message.

    My suggestion is to re-structure your script to only backup the folders you require (e.g. Music, Photos etc. etc.).

    Regards,
    Golden
      My Computer


  7. Posts : 78
    Win 7/Pro 64-bit
       #76

    This is what I ended up using ....


    Thanks for your help .... this is what I ended up using:

    robocopy e:"/2010-06-Facebook" f: /e /np /tee /mt:4 /log:f:/my_backup_log.txt
    robocopy e:"@ Interim from Samsung" f: /e /np /tee /mt:4 /log+:f:/my_backup_log.txt
    robocopy e:"@ LexSing" f: /e /np /tee /mt:4 /log+:f:/my_backup_log.txt
    robocopy e:"@MyStuff" f: /e /np /tee /mt:4 /log+:f:/my_backup_log.txt
    robocopy e:"@Websites" f: /e /np /tee /mt:4 /log+:f:/my_backup_log.txt


    .... and so on, for 55 additional main sub-directories... the whole bunch followed by

    pause

    The final log file has 218,725 lines. That is several times more that what I expected. Drive E uses 198 GB; Drive F uses uses 393GB. From the log there are a lot of files labeled "New File" and there are also a lot of files labeled "*EXTRA Dir" ...

    I'm confused !!
      My Computer


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

    Hi,

    "New File" are files that exist on your source, but not on the destination, so they are copied to the destination.

    "Extra Dir" are directories that exist on your destination, but not on the source, so they are deleted from the destination.

    Regards,
    Golden
      My Computer


  9. Posts : 5
    Windows 7 32 and 64 bit
       #78

    Hi Golden

    This thread has been a life saver. I have been tasked with figuring out a windows 7 profile backup strategy. It appears the powers that be do not wish to use roaming profiles and folder redirection. I have tried many things, but nothing has really worked with the exception of "windows easy transfer". Any other procedure fails to restore the profile correctly.

    After I back up the profile to a usb drive ( i am experimenting on a non domain laptop.) I delete the user profile from the profiles tab, the local user account still exists. I then restore the profile from a local admin account. Logging back in as the user whose profile was deleted, however, only gives me the default profile. All my icons, desktop background etc are missing. The implementation, if I can get it working, would be in a domain environment where I would want to use a batch file and scheduled task to back the user's profile up to a network share on a nightly basis, using the /mir switch to do incremental copies. I would need to be able to restore the user profile exactly as it was should some type of corruption or other catastrophy arise, or if the user has a hardware failure.

    Is there a way to script this so it would log in as the domain admin and copy the current logged in user's profile completely? Woul

    would using robocopy to restore the profile preserve all the user's customizations?

    Thank you in advance for your consideration.
      My Computer


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

    Hi Hugh and welcome to SevenForums,

    Mmm. An interesting problem. So, the user will be logged off at the time that the .BAT file runs? I don't see an issue as long as ROBOCOPY has the appropriate permissions (/COPY options). As for logging in as domain admin, I'm not really sure about that.....

    I'll see if I can find someone a bit more experienced to have a look at this for you.

    Regards,
    Golden
      My Computer


 
Page 8 of 32 FirstFirst ... 67891018 ... 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 05:36.
Find Us