====== Using robocopy ====== Robocopy is a Windows command line tool that can be used to robustly copy files. It's a bit similar to ''rsync'' on UNIX platforms. ===== To mirror a folder ===== robocopy C:\Folder1\ D:\Folder2\ /MIR /XO Meaning of the options: * ''/MIR'': Mirrors the source to the destination. \\ :!: This also deletes files and directories from the destination that do not exist in the source! * ''/XO'': Do not recopy older files. If the destination has a file with a date equal or newer to the source, the source file is not copied again. ===== References ===== * https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy * https://medium.com/@furkangozukara/how-to-mirror-a-disk-into-another-disk-by-using-robocopy-command-of-windows-f6a5f758d464 {{tag>Windows robocopy}}