If you need to exclude any meta data of the files, you can be more specific. But seriously, read the manual on this one. This is completely preference, but it could greatly impact the amount of time the job takes to run depending on the number of files and failures. /R and /W – Determines the number of retries (/r) and the wait time between retries (/w).Use /log+ to append instead of overwrite. /LOG – If you are running this on a scheduled task, it’s probably a good idea to write to a log so you can review it later if there are issues.Unless you need to see a line for every file it copied, use these. /NFL and /NDL – Suppresses file and directory lists.Modify this for your use case: robocopy.exe "D:Source" "ServerDestination" *.* /NFL /NDL /LOG:logscopylog.txt /R:2 /W:1 /COPYALL /XO /ZB /E Break It Down Don’t use the GUI version, you are better than that. If you don’t use Robocopy, I highly recommend it as the command line tool to automate file copy/sync jobs either locally or across the network between Windows machines. The following Robocopy command is my go to for most cases. ![]() I’m putting this here as a reference for myself and anyone else that frequently uses Robocopy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |