Robocopy句法、命令行开关和例子
Robocopy (健壮存档元件)是命令线存档元件工具在窗口景色。 虽然Robocopy为自由是可利用的与下载窗口资源成套工具从视窗NT 4.0,它从未是一个正式特点操作系统直到景色到来。 不同于其他固定存档元件命令例如拷贝和XCopy, Robocopy为可靠拷贝或反映所有大小整个文件夹设计和在复制过程中,保证所有NTFS ACLS、属性、所有者信息,供选择数据流,验核信息,时间戳和物产被复制除了担保信息,除非用/COPYALL开关明确地请求。 并且最佳所有, Robocopy在是有用的,当复制大文件时的命令行工作在是受中断或储运损耗支配与简历复制的特点的网络连接,并且有进展显示。
Robocopy句法
ROBOCOPY来源目的地[文件[文件]…] [选择]
那里来源是源目录(驱动:\道路或\ \服务器\份额\道路),目的地是目标目录(驱动:\道路或\ \服务器\份额\道路)和文件是复制的文件名字或计算机通配符可以指定的地方,并且缺省是“*.*” (所有文件)。
Robocopy选择和开关
复制选项:
/S : : 复制补充指南,但不倒空部分。
/E : : 复制补充指南,包括空那些。
/LEV :n : : 只复制源目录树的上面n水平。
/Z : : 复制文件在restartable方式下。
/B : : 复制文件在备用方式下。
/ZB : : 使用restartable方式; 如果通入否认了用途备份方式。
/EFSRAW : : 复制所有被加密的文件在EFS原始方式下。
/COPY :copyflag [s] : : 什么对拷贝为文件(缺省是/COPY :DAT)。
(copyflags : D=Data、A=Attributes, T=Timestamps)。
(S=Security=NTFS ACLs, O=Owner信息, U=aUditing信息)。
/DCOPY :T : : 复制目录时间戳。
/SEC : : 复制文件以安全(等效与/COPY :DATS)。
/COPYALL : : 复制所有文件信息(等效与/COPY :DATSOU)。
/NOCOPY : : 不要复制文件信息(有用与/PURGE)。
/SECFIX : : 固定文件保密在所有文件,甚而跳的文件。
/TIMFIX : : 固定文件时间在所有文件,甚而跳的文件。
/PURGE : : 删除不再存在于来源的dest文件或dirs。
/MIR : : 反映一个目录树(等效与/E加上/PURGE)。
/MOV : : 移动文件(删除从来源在复制以后)。
/MOVE : : 移动文件和dirs (删除从来源在复制以后)。
/A + :[RASHCNET] : : 增加特定属性到被复制的文件。
/A- :[RASHCNET] : : 去除特定属性从被复制的文件。
/CREATE : : 创造仅目录树和零长度文件。
/FAT : : 使用仅8.3肥胖文件名字创造目的地文件。
/256 :: 关闭非常长的道路(> 256个字符)支持。
/MON :n : : 监测来源; 比看的n变动再跑,当更多。
/MOT :m : : 监测来源; 再跑在m分钟时间,如果改变。
/RH :hhmm-hhmm : : 奔跑小时-时期,当新的拷贝也许开始时。
/PF : : check run hours on a Per File (not per pass) basis.
/IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines.
File Selection Options :
/A :: copy only files with the Archive attribute set.
/M :: copy only files with the Archive attribute and reset it.
/IA:[RASHCNETO] :: Include only files with any of the given Attributes set.
/XA:[RASHCNETO] :: eXclude files with any of the given Attributes set.
/XF file [file]… :: eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]… :: eXclude Directories matching given names/paths.
/XC :: eXclude Changed files.
/XN :: eXclude Newer files.
/XO :: eXclude Older files.
/XX :: eXclude eXtra files and directories.
/XL :: eXclude Lonely files and directories.
/IS :: Include Same files.
/IT :: Include Tweaked files.
/MAX:n :: MAXimum file size - exclude files bigger than n bytes.
/MIN:n :: MINimum file size - exclude files smaller than n bytes.
/MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date.
/MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.
/MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.
/MINLAD:n :: MINimum Last Access Date - exclude files used since n.
(If n <1900 then n="n" days, else n="YYYYMMDD" date).
/XJ :: eXclude Junction points. (normally included by default).
/FFT :: assume FAT File Times (2-second granularity).
/DST :: compensate for one-hour DST time differences.
/XJD :: eXclude Junction points for Directories.
/XJF :: eXclude Junction points for Files.
Retry Options :
/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.
/REG :: Save /R:n and /W:n in the Registry as default settings.
/TBD :: wait for sharenames To Be Defined (retry error 67).
Logging Options :
/L :: List only - don’t copy, timestamp or delete any files.
/X :: report all eXtra files, not just those selected.
/V :: produce Verbose output, showing skipped files.
/TS :: include source file Time Stamps in the output.
/FP :: include Full Pathname of files in the output.
/BYTES :: Print sizes as bytes.
/NS :: No Size - don’t log file sizes.
/NC :: No Class - don’t log file classes.
/NFL :: No File List - don’t log file names.
/NDL :: No Directory List - don’t log directory names.
/NP :: No Progress - don’t display % copied.
/ETA :: show Estimated Time of Arrival of copied files.
/LOG:file :: output status to LOG file (overwrite existing log).
/LOG+:file :: output status to LOG file (append to existing log).
/UNILOG:file :: output status to LOG file as UNICODE (overwrite existing log).
/UNILOG+:file :: output status to LOG file as UNICODE (append to existing log).
/TEE :: output to console window, as well as the log file.
/NJH :: No Job Header.
/NJS :: No Job Summary.
/UNICODE :: output status as UNICODE.
Job Options :
/JOB:jobname :: take parameters from the named JOB file.
/SAVE:jobname :: SAVE parameters to the named job file
/QUIT :: QUIT after processing command line (to view parameters).
/NOSD :: NO Source Directory is specified.
/NODD :: NO Destination Directory is specified.
/IF :: Include the following Files.
Robocopy Examples
To use Robocopy is simple, just like how you would use Copy and Xcopy commands. For example, to copy entire folder of C:\Users to C:\UserBackup, simply type:
Robocopy C:\Users C:\UserBackup
IMPORTANT: This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- Microsoft Robocopy GUI Free Download
- 10 New Executables and 20 Old Commands in Windows Vista
- Workaround for Slow Large File Copying and Transfering To and From Vista PC
- How to Check Memory Usage in Linux based Server
- Download CDImage GUI (CDImageGUI)
- How to Rename or Move Oracle Tablespace Datafile to Another Location
- Check and Optimize MySQL Database Automatically with Crontab/Cron
- Manipulate Acrobat PDF Files with pdftk Toolkit
- Windows PowerShell 1.0 for Windows Vista Free Download
- PHP Parse Error: syntax error, unexpected $end
























May 8th, 2007 02:59
[...] Robocopy is an advanced copy utility with has the feature to automatically resume file transfer on error or network disruption, or recover from terminated file copying, plus selective copying based on new or updated criteria. Beside, Robocopy also can preserve all of the file properties and information, including date and time stamps, security access control lists (ACLs) and more while replicating the file. Robocopy is definitely a more useful utility, especially for advanced users. However, Robocopy came built-in in Windows Vista with command line interface only. To ease the task of using Robocopy, a GUI (graphical user interface) has been made available by Microsoft. Robocopy GUI lets you specify your source and target paths, as well as any custom options or filters you’d like to apply, whether or not you’d like to create a drive mapping, where you’d like to store the resulting logs, and so on. These are all features you can certainly execute with traditional Robocopy command line functionality, but for many, having the options consolidated in a graphical interface may really simplify the process. [...]