You are scheduling a nightly Robocopy job to migrate a 2 TB departmental share from \FS01\Share to \FS02\Share. The migration must (1) delete any files or folders that were removed from the source, (2) preserve every NTFS permission, ownership entry, and audit record, (3) append status details to an existing log file at C:\Logs\ShareSync.log, and (4) speed up the transfer by using 16 copy threads. Which command will meet all of these requirements?
The /MIR switch mirrors the directory tree, combining /E and /PURGE so any item deleted on the source is also removed on the destination. /COPYALL is shorthand for /COPY:DATSOU and preserves data, attributes, timestamps, security (ACLs), owner, and auditing information-satisfying the metadata requirement more completely than /SEC. /LOG+ appends (rather than overwrites) output to the specified log file, and /MT:16 enables a 16-thread, multithreaded copy operation. The other commands each miss at least one requirement: using /E without /PURGE does not delete removed items, /SEC omits owner and audit data, /LOG overwrites the file, and /MT defaults to 8 threads in the third option.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the /MIR switch do in Robocopy?
Open an interactive chat with Bash
What is the difference between /COPYALL and /SEC in Robocopy?
Open an interactive chat with Bash
How does the /MT switch improve Robocopy performance?