robocopy
noun
say it: “ROH-boh-kop-ee” /ˈroʊboʊˌkɑpi/
A Windows program for copying folders that copies only what changed after the first run, can make a mirror and can rehearse.
What is robocopy?
robocopy ("robust copy") is the copying program built into Windows for backups. The first run copies the whole folder; later runs copy only the files that are new or changed. /MIR makes the copy a mirror, /L lists what would happen without doing it, and its exit code is unusual: anything below 8 means it worked, so 1 (files copied) is good news.
robocopy school-work backup-drive\school-work /MIR /L # rehearse: list only
robocopy school-work backup-drive\school-work /MIR
$LASTEXITCODE # below 8 means success
In a sentence
- “Sam's backup script runs robocopy with /MIR every night.”
- “robocopy ended with exit code 1, which means it copied files and worked.”
Level: Journeyman · More Operating System terms at this level
Updated