command line option in robocopy question
Can anyone tell me what do the robocopy scripts command line options means which are given below? What is the difference in these lines that I found in the BAT Files on the web server?
robocopy c:\ \\servername\F$\WEB2\ /e /xo /R:0 /W:0 /LOG:C:\backuplog.txt /NP
robocopy c:\ \\servername\myfolder\WEB2\ /mir /R:0 /W:0 /LOG:C:\backuplog2.txt /NP
Re: command line option in robocopy question
Robocopy, or "Robust File Copy", is a command-line directory replication command. It was available as part of the Windows Resource Kit, and introduced as a standard feature of Windows Vista and Windows Server 2008.
Robocopy is designed for reliable mirroring of directories or directory trees. It has features to ensure all NTFS attributes and properties are copied, and includes additional restart code for network connections subject to disruption.
For more information visit this site: http://en.wikipedia.org/wiki/Robocopy
Re: command line option in robocopy question
This link explains the switches, also robocopy /? from the command line lists the switches.
http://www.ss64.com/nt/robocopy.html
/E : Copy Subfolders, including Empty Subfolders
/XO : eXclude Older - if destination file exists and is the same date or newer than the source - don't bother to overwrite it.
/R:n : number of Retries on failed copies - default is 1 million.
/W:n : Wait time between retries - default is 30 seconds.
/NP : No Progress - don't display % copied.
/MIR : MIRror a directory tree - equivalent to /PURGE plus all subfolders (/E)
/LOG:file : output status to LOG file (overwrite existing log).
Hope that's what you were looking for.
Re: command line option in robocopy question
Have a look through the Robocopy documentation which is very comprehensive and is free download.
Also, I remember that there is a switch for Robocopy that will save settings to registry creating a 'new' default. Perhaps it is reading the other settings /R: and /W: from whats in the registry on your PC.