Windows 7 System powerful replication command Robocopy operation method

Source: Internet
Author: User
Tags robocopy

Windows 7 System powerful replication command Robocopy operation method:

Run Robocopy at the command prompt

Example: Robocopy e:xutianlong f:xutianlong/e

Replicates subdirectories, including empty subdirectories.

Parameter explanation

First, replication options:

Parameter explanation:

/S:: Replicates subdirectories, but does not copy empty subdirectories.

/e:: Replicates subdirectories, including empty subdirectories.

/lev:n:: Copy only the first n layers of the source tree.

/z:: Copy files in restart mode.

/b:: Copy files in Backup mode.

/ZB:: Use bootable mode; if access is denied, use Backup mode.

/efsraw:: Copies all encrypted files in EFS RAW mode.

/copy: Copy Tags:: The contents of the file to be copied (default is/copy:dat).

(Copy tag: d= data, a= property, t= timestamp).

(s= security =ntfs acl,o= owner information, u= Audit information).

/dcopy:t:: Copy directory timestamp.

/sec:: Copy the file with security (equivalent to/copy:dats).

/copyall:: Copy all file information (equivalent to/copy:datsou).

/nocopy:: Do not copy any file information (used with/purge).

/secfix:: Fixes file security for all files, even skipped files.

/timfix:: Fix all file time for files, even skipped files.

/purge:: Deletes target files/directories that no longer exist in the source.

/mir:: Mirrored directory tree (equivalent to/e and/purge).

/mov:: Move the file (removed from the source after copying).

/move:: Move files and directories (removed from the source after replication).

/a+:[rashcnet]:: Adds the given property to the copied file.

/a-:[rashcnet]:: Deletes the given property from the copy file.

/create:: Create only a directory tree and a zero-length file.

/fat:: Creates the destination file using only the 8.3 FAT file name.

/256:: Turn off the Super Long path (> 256 characters) support.

/mon:n:: Monitoring source, running again when more than n changes are found.

/MOT:M:: monitor source; If changed, run again in M-minute time.

/RH:HHMM-HHMM:: Run hours-time to start a new replica.

/PF:: Checks the running hours based on each file (instead of each step).

/IPG:N:: Space between packages (MS) to release bandwidth on low-speed lines.

Second, file selection options:

Parameter explanation:

/max:n:: Maximum file size-excludes files larger than n bytes.

/min:n:: Minimum file size-excludes files less than n bytes.

/maxage:n:: Maximum file existence time-excludes files older than n days/dates.

/minage:n:: Shortest file existence time-excludes files that are later than n days/dates.

/maxlad:n:: Maximum last access date-excludes files that have not been used since N.

/minlad:n:: Minimum last access date-files that have been used since n have been excluded.

(If N < 1900 then n = n days, Else n = YYYYMMDD date).

/XJ:: Excluding junction points. (usually included by default).

/fft:: Assume the FAT file time (2 seconds granularity).

/DST:: Make up for 1 hours of DST time lag.

/XJD:: Excludes the junction point of the catalog.

/XJF:: Excludes the junction point of the file.

/A:: Only files with archived attribute sets are copied.

/M:: Copy only files with archive attributes and reset the archive properties.

/ia:[rashcneto]:: Contains only files with any given set of attributes.

/xa:[rashcneto]:: Excludes files with any given set of properties.

/XF file [file] ...:: Excludes files that match the given name/path/wildcard character.

/XD directory [Directory] ...:: Excludes directories that match a given name/path.

/XC:: Excludes files that have changed.

/XN:: Exclude newer files.

/xo:: Exclude older files.

/XX:: Exclude unnecessary files and directories.

/XL:: Excludes orphaned files and directories.

/IS:: Contains the same file.

/it:: Contains the adjusted file.

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.