Powerful replication command robocopy in Win7

Source: Internet
Author: User
Tags robocopy

The powerful Copy command of Win7, robocopy, runs the robocopy example in the command prompt: robocopy E: \ xutianlong F: \ xutianlong/E to copy sub-directories, including empty sub-directories. Parameter description 1. Copy option: parameter description:/S: Copy sub-directories, but do not copy empty sub-directories. /E: Copy sub-directories, including empty sub-directories. /Lev: n: only copies the first n layers of the source directory tree. /Z: copy the file in restart mode. /B: Copy files in backup mode. /ZB: Use the restart mode. If access is denied, use the backup mode. /EFSRAW: Copies all encrypted files in efs raw mode. /COPY: COPY Tag: content of the file to be copied (/COPY: DAT by default ). (Copy Tag: D = data, A = attribute, T = timestamp ). (S = Security = ntfs acl, O = Owner information, U = audit information ). /DCOPY: T: Specifies the copy directory timestamp. /SEC: Copies secure files (equivalent to/COPY: DATS ). /COPYALL: COPY all file information (equivalent to/COPY: DATSOU ). /NOCOPY: do not copy any file information (used with/PURGE ). /SECFIX: security of all files, even files that are skipped. /TIMFIX: indicates the time when all files are repaired, even if they are skipped. /PURGE: Delete the target file/directory that no longer exists in the source. /MIR: Image directory tree (equivalent to/E and/PURGE ). /MOV: Move a file (copy and delete it from the source ). /MOVE: MOVE files and directories (copy and delete from the source ). /A +: [RASHCNET]: add the specified attribute to the copy file. /A-: [RASHCNET]: deletes A specified attribute from A copy file. /CREATE: only CREATE a directory tree and a file with zero length. /FAT: only use the 8.3 FAT file name to create the target file. /256: Close the support for ultra-long paths (> 256 characters. /MON: n: Monitoring source; run again when more than n changes are found. /MOT: m: Monitoring source; If changed, run it again within m minutes. /RH: hhmm-hhmm: running hours-the time when a new copy can be started. /PF: Check the running hours based on each file (rather than each step. /IPG: n: The spacing (MS) between program packages to release the bandwidth on low-speed lines. Ii. file selection option: parameter explanation:/A: only copy files with an archive attribute set. /M: only copy files with archive attributes and reset the archive attributes. /IA: [RASHCNETO]: contains only files with any given property set. /XA: [RASHCNETO]: exclude files with any given property set. /XF file [file]...: exclude files that match the given name/path/wildcard. /XD directory [Directory]...: Exclude directories that match the given name/path. /XC: exclude changed files. /XN: exclude newer files. /XO: exclude older files. /XX: exclude unnecessary files and directories. /XL: exclude isolated files and directories. /IS: contains the same file. /IT: contains the adjusted file. /MAX: n: Maximum File Size-exclude files larger than n Bytes. /MIN: n: Minimum File Size-exclude files smaller than n Bytes. /MAXAGE: n: The longest time when a file exists-exclude files earlier than n days/date. /MINAGE: n: specifies the minimum time when a file exists.-exclude files later than n days/date. /Maxglad: n: Maximum last access date-exclude files not used since n. /Minglad: n: Minimum last access date-exclude files used since n. (If n <1900 then n = n days, else n = YYYYMMDD date ). /XJ: exclude joining points. (This is usually included by default ). /FFT: Assume the FAT file time (2 seconds granularity ). /DST: makes up for the DST time difference of one hour. /XJD: exclude directory joining points. /XJF: exclude file joining points.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.