![]() Leave out the hidden files and the system files. It contains your documents folder, favorites etc. ![]() Is the source directory and the directory in which my windows user profile is located. And the parameters explained for the nerds: Parameter Robocopy C:\Users\Jacob T:\DesktopPC\C-Drive\Users\Jacob /MIR /XA:SH /W:0 /R:1 /REG /XJ > C:\externalbackup.logĪdd a line for each user using the computer. I like to be able to see what the backup did. I use this to exclude certain file extensions, like *.lrprev I only use it with fully qualified paths to be sure what it excludes.Įxclude files. This one is used to exclude directories like c:\temp. In theory this means that I only need to use this parameter once, but I keep it around for when I restore Windows or get a new computer.Įxclude Directories. This one saves new default values on /W and /R to the registry. The backup will never finish if you just have one single file that is permanently locked. If you combine that with with the /W paramater and a default of 30 seconds, that is potentially 30.000.000 seconds pr file permanently locked. I set the to 1, the default is 1.000.000. The number of retries, if the file is locked. I’ll get the file backed up the next time. I don’t want the backup to wait, it should continue straight away, otherwise it can take too long. If a file is locked, because it is in use, the robocopy can wait and retry. Wait time between retries, the default is 30 seconds. If they are hidden they are in my terminology not important. This is also true if you delete something by accident. NB! Another important detail and word of warning, is that when you make a Mirrored backup, if you delete something in the Source, it will also be deleted in the Destination, when the script runs. This tells robocopy to make a mirror backup. It makes backup easy, just as well as it makes migration to a new computer very easy. I always store data that I backup in a folder called Data. Robocopy C:\Data T:\DesktopPC\C-Drive /MIR /XA:H /W:0 /R:1 /REG > C:\externalbackup.logĪnd the parameters explained for the nerds: Parameter Copy all necessary data from a NAS to an external hard drive.Copy all user settings from Windows to an external hard drive.Copy all necessary data from desktop computer to an external hard drive.This is a basic backup strategy that you can modify for your exact needs. Do not switch source and destination! The backup strategy This is not specific for Robocopy, it’s the nature (and point!) of a mirror copy tool. ![]() A mirror backup with the source and destination the wrong way around will erase your data faster, than you can spell ‘Oh Nooooo!’. If you feel that your hand is shaking, start practicing with test directories. Robocopy can delete all your files extremely fast, if you mix up source and destination. Just be sure that you do not get the source and destination the wrong way around. This means that it will make anything from the source directory to be reflected exactly the same way in the destination directory. ![]() I centralize a backup, from the various storage locations I have (NAS, data drives, system drive) and that backup I include in my Livedrive backup plan.Īnyway, one of the primary reasons for using Robocopy, rather than many other free backup products out there, is that it does a mirror backup. Personally, I use Robocopy to take local backups. I use Robocopy in combination with online backup. Instead of spending a lot of time figuring out the syntax parameters you can use my commands. In the end, they use the same command line tool. The link is provided in the bottom of this article. But if you feel like, you can have a look at them. Some guys at Microsoft made a graphical user interface for Robocopy, but it doesn’t give me the flexibility that I need. Robocopy has always had an answer for a problem. And then it’s free – I love free software too. I must admit that Robocopy really does a more than a great job and I love it. But, I have come to love them again (?), even if it seems a super outdated technology in the age of the smartphone. It is a command line tool.Ĭommand line tools seems to be hot again, and I really really hated them for a long period of time. Robocopy is a fantastic piece of software, there is only one major flaw.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |