ROBOCOPY - Create Backup Script

Page 17 of 32 FirstFirst ... 7151617181927 ... LastLast

  1. Posts : 26
    Windows 10 Home, 64-bit
       #160

    Locks on your front door can be a pain, too, especially when you have an armload of groceries. But, removing them entails risk.

    Once you learn to manage UAC, it's really not a big deal unless you're constantly installing and uninstalling software.
      My Computer


  2. Posts : 1
    Windows 7 pro x64
       #161

    Thanks for this post Golden!!!
    Great post and very useful!!! We need more post like this especially a template for daily, weekly Robocopy backup!!!
      My Computer


  3. Posts : 12
    Windows 7 Enterprise x64
       #162

    acornada said:
    I'm well aware that /MIR = /PURGE + /E. That will never delete files from source.

    Microsoft Technet said:
    /PURGE : Deletes destination files and directories that no longer exist in the source.
    That means that Robocopy will delete files from destination, if you have deleted them from source.

    Neither /PURGE nor /MIR will delete files from source. Please test it, you'll see.
    I will NEVER use /MIR in a backup script. If I accidentally delete something but don't notice it, then run my script, where is the file/folder? Nowhere. Poof! Gone! I may not realize the problem for months.
    In fact, this exact scenario came up at work just a couple weeks ago. A co-worker had written a robocopy script for a remote file share to backup one USB drive to another. Part of this script was /mir, /mon:1 and /mot:15. Thank whoever that the script wasn't running when I was emailed asking to restore an entire project folder with 3GB 's of data that was accidentally deleted.
    People don't seem to realize we're not only backing up in case a drive fails, but also in case someone's brain fails. :)
      My Computer


  4. Posts : 26
    Windows 10 Home, 64-bit
       #163

    You miss the point. The tutorial says that MIR will delete files from source, which is not true. Neither /PURGE nor /MIR will delete files from source.

    As for your situation, yes, what you want is a backup, not a mirroring. Mirroring is a very useful backup technique, but it doesn't replace having archived backups (which is what you want). A mirrored drive or directory ensures that if the source is damaged or fails, you can begin working again from the mirror which is very recent or even real time. Mirroring and point-in-time or archived backups are different techniques, both useful, for different needs.

    You still need archived backups, which are backups of files as at a particular point in time. That way, when you realize that you deleted something last week that you now need, you can restore from a two-week-old backup.

    But, the tutorial is clearly wrong. Neither /PURGE nor /MIR will delete files from source. Never.
      My Computer


  5. Posts : 12
    Windows 7 Enterprise x64
       #164

    I didn't miss the point. I was round-a-boutly agreeing with you. My point was if /mir is used in a backup scheme, and I accidentally delete something from the source, then run the script, I'm screwed.
      My Computer


  6. Posts : 26
    Windows 10 Home, 64-bit
       #165

    Yep, that would be true. You don't want mirroring, at least not frequent mirroring. I use a combination of archived backups and a mirrored backup. Both are useful, for different goals.
      My Computer


  7. Posts : 3
    Windows 7 Ultimate x64
       #166

    Hello, I cannot get this script to work???CMD prompts and just keeps running this data over and over? please help
    robocopy E:\Data1 G:\Backups\Data1 robocopy F:\Data2 G:\Backups\Data2 robocopy F:\Data3 Q:\Backups\Data3 pause
      My Computer


  8. Posts : 3
    Windows 7 Ultimate x64
       #167

    Nice tutorial I will definitely use this!!!
      My Computer


  9. Posts : 26
    Windows 10 Home, 64-bit
       #168

    ITspecialist said:
    Hello, I cannot get this script to work???CMD prompts and just keeps running this data over and over? please help
    robocopy E:\Data1 G:\Backups\Data1 robocopy F:\Data2 G:\Backups\Data2 robocopy F:\Data3 Q:\Backups\Data3 pause
    1. That won't work, AFAIK, you can't just string together separate commands/tasks and enter them all as a single line into CMD.

    2. If you want to have all three of those tasks run, do it in a batch file, where each is on a separate line.
      My Computer


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

    Welcome to SevenForums,

    Try this:

    Code:
     
    robocopy E:\Data1 G:\Backups\Data1
    robocopy F:\Data2 G:\Backups\Data2
    robocopy F:\Data3 Q:\Backups\Data3
    pause
    Regards,
    Golden
      My Computer


 
Page 17 of 32 FirstFirst ... 7151617181927 ... 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 10:49.
Find Us