Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



command line option in robocopy question

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-05-2009
Member
 
Join Date: Jul 2006
Posts: 289
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

__________________
Signatures reduce available bandwidth
Reply With Quote
  #2  
Old 22-05-2009
Member
 
Join Date: Dec 2007
Posts: 1,549
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
Reply With Quote
  #3  
Old 22-05-2009
Member
 
Join Date: Jun 2006
Posts: 620
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.
Reply With Quote
  #4  
Old 22-05-2009
Member
 
Join Date: Dec 2007
Posts: 1,586
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "command line option in robocopy question"
Thread Thread Starter Forum Replies Last Post
Starting Firefox in Fullscreen with command line option? Aleeza Technology & Internet 4 18-09-2010 05:13 AM
xcopy command line together with wmplayer command line Aislinn Operating Systems 5 31-03-2010 12:13 PM
Problem: Command Line Option Syntax Error. Type Command /? For Help Nadeem MediaCenter 3 03-09-2009 05:41 PM
Sql express 2005 setup command line option Holt Software Development 3 13-07-2009 12:46 PM
Question about Windows XP Screen Saver, Power Manager and Command Line Interface Zeeman28a Operating Systems 3 18-05-2009 08:38 AM


All times are GMT +5.5. The time now is 07:30 PM.