'How to copy all files using Robocopy
When I start my robocopy
script, it isn't copying the last files and outputs:
waiting for 1 minute and 1 change
I assume that everything is copied, but apparently sometimes the last files from the last copied folder are missing. When I re-run the script it works. I use the following config:
os.system("robocopy " + "\"" + source + "\"" + " \"" + destination + "\"" + " /E /Z /MON:1")
How can I solve it?
Solution 1:[1]
robocopy will backup your specific file or folder even if you changed some data, it will only copy the new data and will be copy.
HOW TO DO
Open NotePad and type
robocopy "file path you want to copy" "on which folder you want to paste" /MIR
And then save your notepad as ".bat
" file
/MIR stands for mirror. This treats the source folder as the one source of truth, overwriting any changes to the destination folder. Allowing your offline backup to efficiency synchronize all changes no matter when your last backup was. [vidler]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | malhal |