There are many switches that you can use with robocopy, but here are some of the most common and useful ones:
/MIR: This switch mirrors the source folder to the destination folder, meaning that it deletes any files or folders in the destination that are not in the source. This is useful for synchronizing folders or creating exact backups.
/MOV or /MOVE: These switches move the files or folders from the source to the destination, instead of copying them. The difference is that /MOV deletes only the files that are moved, while /MOVE deletes both the files and the folders that are moved.
/SEC or /COPY:DATS: These switches copy the security information, such as permissions, owner, and audit settings, along with the data and attributes of the files or folders. The /SEC switch is equivalent to /COPY:DATS, where D stands for data, A for attributes, T for timestamp, and S for security.
/XO or /XN: These switches exclude older or newer files from being copied, based on the timestamp comparison. The /XO switch excludes older files, meaning that it does not overwrite newer files in the destination with older files from the source. The /XN switch excludes newer files, meaning that it does not overwrite older files in the destination with newer files from the source.
/LOG or /LOG+: These switches create a log file that records the details of the robocopy operation, such as the files copied, skipped, failed, or deleted. The /LOG switch overwrites the existing log file, while the /LOG+ switch appends to the existing log file. You can specify the name and location of the log file after the switch, or use the default name robocopy.log in the current folder.