Robocopy Syntax, Command Line Switches and Examples Robocopy Cú pháp, Command Line tắc và ví dụ

Robocopy (Robust File Copy) is a command-line file copying tool in Windows Vista. Robocopy (Robust File Copy) là một lệnh sao chép tập tin dòng công cụ trong Windows Vista. Although Robocopy is available for free with the download Windows Resource Kit since Windows NT 4.0, it has never been an official feature of the operating system until the arrival of Vista. Mặc dù Robocopy có sẵn cho download miễn phí với Windows Resource Kit kể từ Windows NT 4.0, nó chưa bao giờ được một tính năng chính thức của hệ điều hành cho đến khi Vista. Unlike other built-in file copying commands such as Copy and XCopy, Robocopy is designed for reliable copy or mirroring of entire folders of any size, and in the copying process, ensure that all NTFS ACLS, attributes, owner information, alternate data streams, auditing information, timestamps and properties are copied except security information unless explicitly requested with /COPYALL switch. Không giống khác được xây dựng trong tập tin sao chép lệnh như Copy và xcopy, Robocopy được thiết kế cho chép đáng tin cậy hay phản ánh toàn bộ các thư mục có kích thước bất kỳ, và trong quá trình sao chép, đảm bảo rằng tất cả các ACLs NTFS, thuộc tính, chủ sở hữu thông tin, dữ liệu thay thế dòng suối, kiểm toán thông tin, timestamps và tài sản sẽ được sao chép, ngoại trừ thông tin bảo mật, trừ khi rõ ràng với yêu cầu chuyển đổi COPYALL /. And best of all, Robocopy works over network connections that are subject to disruption or outages with resume copying feature, and has progress indicator on the command line that is useful when copying large files. Và tốt nhất của tất cả, Robocopy công trình trên các kết nối mạng mà có thể bị gián đoạn hoặc cúp với tính năng sao chép tiếp tục, và đã chỉ thị tiến bộ trên dòng lệnh đó là hữu ích khi sao chép các tập tin lớn.

Robocopy Syntax Cú pháp Robocopy

ROBOCOPY source destination [file [file]…] [options] ROBOCOPY nguồn đích [file [file] ...] [tuỳ chọn]

where source is Source Directory (drive:\path or \\server\share\path), destination is Destination Directory (drive:\path or \\server\share\path) and file is File(s) to copy where names or wildcards can be specified and default is “*.*” (all files). nơi mà nguồn là Nguồn Directory (ổ đĩa: \ đường dẫn hoặc \ \ server \ share \ đường dẫn), là điểm đến Điểm đến Directory (ổ đĩa: \ đường dẫn hoặc \ \ chia sẻ máy chủ \ \ đường dẫn) và tập tin là File (s) để sao chép mà tên hay wildcards có thể được chỉ định và mặc định là "*.*" (tất cả các file).

Robocopy Options and Switches Robocopy Options và chuyển mạch

Copy options : Copy lựa chọn:

/S :: copy Subdirectories, but not empty ones. / S:: Các thư mục con sao chép, nhưng những người không có sản phẩm nào.
/E :: copy subdirectories, including Empty ones. / E:: thư mục con sao chép, kể cả rỗng.
/LEV:n :: only copy the top n LEVels of the source directory tree. / LEV: n:: chỉ chép Levels n trên cùng của cây thư mục nguồn.

/Z :: copy files in restartable mode. / Z:: sao chép các tập tin trong chế độ restartable.
/B :: copy files in Backup mode. / B:: tập tin sao chép trong chế độ Backup.
/ZB :: use restartable mode; if access denied use Backup mode. / ZB:: sử dụng chế độ restartable; nếu truy cập bị từ chối sử dụng chế độ Backup.
/EFSRAW :: copy all encrypted files in EFS RAW mode. / EFSRAW:: chép tất cả các file trong chế độ mã hóa EFS RAW.

/COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT). / Copy: copyflag [s]:: những gì để Copy cho các tập tin (mặc định là / Copy: DAT).
(copyflags : D=Data, A=Attributes, T=Timestamps). (copyflags: D = liệu, A = thuộc tính, T = timestamps).
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info). (S = Security = NTFS ACL, O = Chủ đầu tư thông tin, U = kiểm toán thông tin).

/DCOPY:T :: COPY Directory Timestamps. / DCOPY: T:: COPY Directory timestamps.

/SEC :: copy files with SECurity (equivalent to /COPY:DATS). / SEC:: tập tin sao chép với an ninh (tương đương / Copy: DATS).
/COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU). / COPYALL:: COPY TẤT CẢ tập tin (tương đương / Copy: DATSOU).
/NOCOPY :: COPY NO file info (useful with /PURGE). / NOCOPY:: COPY NO tập tin thông tin (hữu ích với / Purge).

/SECFIX :: FIX file SECurity on all files, even skipped files. / SECFIX:: FIX tập tin bảo mật trên tất cả các file, ngay cả khi bỏ qua các tập tin.
/TIMFIX :: FIX file TIMes on all files, even skipped files. / TIMFIX:: FIX Times tập tin trên tất cả các file, ngay cả khi bỏ qua các tập tin.

/PURGE :: delete dest files/dirs that no longer exist in source. / Purge:: xóa các tập tin dest / dirs đó không còn tồn tại trong mã nguồn.
/MIR :: MIRror a directory tree (equivalent to /E plus /PURGE). / MIR:: Mirror một cây thư mục (tương đương / E plus / Purge).

/MOV :: MOVe files (delete from source after copying). / MOV:: tập Move (xóa từ nguồn sau khi sao chép).
/MOVE :: MOVE files AND dirs (delete from source after copying). / MOVE:: tập tin MOVE VÀ dirs (xóa từ nguồn sau khi sao chép).

/A+:[RASHCNET] :: add the given Attributes to copied files. / A +: [RASHCNET]:: thêm các thuộc tính cho tập tin sao chép.
/A-:[RASHCNET] :: remove the given Attributes from copied files. / A-: [RASHCNET]:: loại bỏ các thuộc tính nhất định từ các tập tin sao chép.

/CREATE :: CREATE directory tree and zero-length files only. / TẠO:: TẠO cây thư mục và tập tin chiều dài bằng không chỉ.
/FAT :: create destination files using 8.3 FAT file names only. / FAT:: tạo tập tin đích sử dụng 8,3 tên tập tin FAT chỉ.
/256 :: turn off very long path (> 256 characters) support. / 256:: tắt con đường rất dài (> 256 ký tự) hỗ trợ.

/MON:n :: MONitor source; run again when more than n changes seen. / MÔN: n:: MONitor nguồn; chạy lại khi có nhiều hơn sự thay đổi n nhìn thấy.
/MOT:m :: MOnitor source; run again in m minutes Time, if changed. / GTVT: m:: giám sát nguồn; chạy lại trong vài phút m Thời gian, nếu thay đổi.

/RH:hhmm-hhmm :: Run Hours – times when new copies may be started. / RH: hhmm-hhmm:: Khởi Giờ - lần khi bản mới có thể được bắt đầu.
/PF :: check run hours on a Per File (not per pass) basis. / PF:: kiểm tra chạy trên một giờ mỗi file (không phải mỗi pass) cơ sở.

/IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines. / IPG: n:: Inter-Packet Gap (ms), để băng thông miễn phí trên đường chậm.

File Selection Options : Tùy chọn File chọn:

/A :: copy only files with the Archive attribute set. / A:: sao chép các tập tin chỉ với Lưu trữ thuộc tính thiết lập.
/M :: copy only files with the Archive attribute and reset it. / M:: sao chép các tập tin chỉ với thuộc tính Lưu trữ và đặt lại nó.
/IA:[RASHCNETO] :: Include only files with any of the given Attributes set. / IA: [RASHCNETO]:: Bao gồm các chỉ tập tin với bất kỳ các thuộc tính được thiết lập.
/XA:[RASHCNETO] :: eXclude files with any of the given Attributes set. / XA: [RASHCNETO]:: loại bỏ các tệp tin với bất kỳ các thuộc tính được thiết lập.

/XF file [file]… :: eXclude Files matching given names/paths/wildcards. / XF file [file] ...:: loại bỏ các tập tin cho phù hợp với tên / đường dẫn / wildcards.
/XD dirs [dirs]… :: eXclude Directories matching given names/paths. / XD dirs [dirs] ...:: Thư mục loại trừ cho phù hợp với tên / đường dẫn.

/XC :: eXclude Changed files. / XC:: Loại trừ các file đã thay đổi.
/XN :: eXclude Newer files. / XN:: Loại trừ các tập tin mới hơn.
/XO :: eXclude Older files. / XO:: loại bỏ tập tin cũ hơn.
/XX :: eXclude eXtra files and directories. / XX:: Loại trừ các file và thư mục phụ.
/XL :: eXclude Lonely files and directories. / XL:: Lonely loại trừ các file và thư mục.
/IS :: Include Same files. / IS:: Bao gồm các tập tin tương tự.
/IT :: Include Tweaked files. / CNTT:: Bao gồm các tập tin Tweaked.

/MAX:n :: MAXimum file size – exclude files bigger than n bytes. / MAX: n:: Tối đa kích thước - loại trừ các tập tin lớn hơn byte n.
/MIN:n :: MINimum file size – exclude files smaller than n bytes. / MIN: n:: kích thước tối thiểu - loại trừ các file nhỏ hơn n byte.

/MAXAGE:n :: MAXimum file AGE – exclude files older than n days/date. / MAXAGE: n:: Tối đa tập AGE - loại trừ các tập tin cũ hơn ngày n / ngày.
/MINAGE:n :: MINimum file AGE – exclude files newer than n days/date. / MINAGE: n:: Tối thiểu tập AGE - loại trừ các tập tin mới hơn ngày n / ngày.
/MAXLAD:n :: MAXimum Last Access Date – exclude files unused since n. / MAXLAD: n:: Tối đa Lần truy cập ngày - loại trừ các tập tin không sử dụng từ n.
/MINLAD:n :: MINimum Last Access Date – exclude files used since n. / MINLAD: n:: Tối thiểu Lần truy cập ngày - loại trừ các tập tin được sử dụng từ n.
(If n < 1900 then n = n days, else n = YYYYMMDD date). (Nếu n <1900 thì n = n ngày, khác n = YYYYMMDD ngày).

/XJ :: eXclude Junction points. / XJ:: Loại trừ điểm Junction. (normally included by default). (thường bao gồm theo mặc định).

/FFT :: assume FAT File Times (2-second granularity). / FFT:: giả sử tập tin FAT Times (2-thứ hai granularity).
/DST :: compensate for one-hour DST time differences. / DST:: bồi thường cho một giờ DST sự khác biệt thời gian.

/XJD :: eXclude Junction points for Directories. / XJD:: Loại trừ điểm Junction cho Thư mục.
/XJF :: eXclude Junction points for Files. / XJF:: Loại trừ điểm Junction cho tập tin.

Retry Options : Thử lại Tùy chọn:

/R:n :: number of Retries on failed copies: default 1 million. / R: n:: số Retries trên bản sao thất bại: mặc định 1 triệu USD.
/W:n :: Wait time between retries: default is 30 seconds. / W: n:: Hãy chờ thời gian giữa retries: mặc định là 30 giây.

/REG :: Save /R:n and /W:n in the Registry as default settings. / REG:: Lưu / R: n và / W: n trong Registry như các thiết lập mặc định.

/TBD :: wait for sharenames To Be Defined (retry error 67). / TBD:: chờ sharenames To Be Xác định (thử lại lỗi 67).

Logging Options : Tùy chọn đăng nhập:

/L :: List only – don't copy, timestamp or delete any files. / L:: Danh sách chỉ có - không sao chép, dấu thời gian hoặc xóa các tập tin bất kỳ.
/X :: report all eXtra files, not just those selected. / X:: báo cáo tất cả các file phụ, không chỉ những người được chọn.
/V :: produce Verbose output, showing skipped files. / V:: sản xuất tiết, hiển thị các tập tin bỏ qua.
/TS :: include source file Time Stamps in the output. / TS:: bao gồm các nguồn tập tin Thời gian Tem ở đầu ra.
/FP :: include Full Pathname of files in the output. / FP:: bao gồm đầy đủ Pathname của ảnh trong đầu ra.
/BYTES :: Print sizes as bytes. / Byte:: kích thước in như byte.

/NS :: No Size – don't log file sizes. / NS:: Không có Kích thước - không đăng nhập kích thước tập tin.
/NC :: No Class – don't log file classes. / NC:: Không có Class - không đăng nhập các lớp học tập.
/NFL :: No File List – don't log file names. / NFL:: Không Danh sách File - không đăng nhập tên tập tin.
/NDL :: No Directory List – don't log directory names. / NDL:: Không có sách Directory - không đăng nhập tên thư mục.

/NP :: No Progress – don't display % copied. / NP:: Không có tiến độ - không hiển thị% sao chép.
/ETA :: show Estimated Time of Arrival of copied files. / ETA:: hiển thị dự kiến Thời gian đến của các tập tin sao chép.

/LOG:file :: output status to LOG file (overwrite existing log). / LOG: file:: tình trạng đầu ra để LOG file (ghi đè lên nhật ký đã có).
/LOG+:file :: output status to LOG file (append to existing log). / LOG +: file:: tình trạng đầu ra để LOG file (phụ thêm để đăng nhập đã có).

/UNILOG:file :: output status to LOG file as UNICODE (overwrite existing log). / UNILOG: file:: tình trạng đầu ra để LOG file là UNICODE (ghi đè lên nhật ký đã có).
/UNILOG+:file :: output status to LOG file as UNICODE (append to existing log). / UNILOG +: file:: tình trạng đầu ra để LOG file là UNICODE (phụ thêm để đăng nhập đã có).

/TEE :: output to console window, as well as the log file. / TEE:: sản lượng để điều khiển cửa sổ, cũng như các tập tin nhật ký.

/NJH :: No Job Header. / NJH:: Không có Tiêu đề công việc.
/NJS :: No Job Summary. / NJS:: Không có lược về công việc.

/UNICODE :: output status as UNICODE. / UNICODE:: đầu ra tình trạng như UNICODE.

Job Options : Việc làm Tùy chọn:

/JOB:jobname :: take parameters from the named JOB file. / VIỆC LÀM: jobname:: lấy thông số từ tập tin có tên VIỆC LÀM.
/SAVE:jobname :: SAVE parameters to the named job file / SAVE: jobname:: SAVE tham số cho các công việc đặt tên tập tin
/QUIT :: QUIT after processing command line (to view parameters). / QUIT:: QUIT dòng lệnh sau khi chế biến (để xem các thông số).

/NOSD :: NO Source Directory is specified. / NOSD:: NO Directory Nguồn được chỉ định.
/NODD :: NO Destination Directory is specified. / NODD:: NO mục đích được chỉ định.
/IF :: Include the following Files. / NẾU:: Bao gồm các tập tin sau.

Robocopy Examples Ví dụ Robocopy

To use Robocopy is simple, just like how you would use Copy and Xcopy commands. Để sử dụng Robocopy là đơn giản, giống như cách bạn sẽ sử dụng Copy và lệnh xcopy. For example, to copy entire folder of C:\Users to C:\UserBackup, simply type: Ví dụ, để sao chép toàn bộ thư mục C: \ Users C: \ UserBackup, chỉ cần gõ:

Robocopy C:\Users C:\UserBackup Robocopy C: \ Users C: \ UserBackup

IMPORTANT : The page is machine translated and provided "as is" without warranty. Quan trọng: Sửa là máy dịch và cung cấp "như là" không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể khó hiểu. Please refer to Vui lòng tham khảo original English article bản gốc tiếng Anh bài viết whenever possible. bất cứ khi nào có thể.


5 Responses to “Robocopy Syntax, Command Line Switches and Examples” 5 hồi đáp tới "Robocopy Cú pháp, Command Line tắc và ví dụ"

  1. Dave Mitchell Dave Mitchell
    October 27th, 2009 00:55 27 tháng 10 năm 2009 00:55
    5 5

    I am using the following command line to move files that have not been accessed in more than two years. Tôi đang sử dụng dòng lệnh sau đây để di chuyển các tập tin mà không được truy cập trong hơn hai năm. Problem is, ROBOCOPY seems to ignore the /MINLAD:730 switch, I even tried using /MINLAD:20071028 siwtch to no avail. Vấn đề là, ROBOCOPY dường như bỏ qua / MINLAD: 730 chuyển đổi, tôi thậm chí đã cố gắng sử dụng / MINLAD: 20.071.028 siwtch để avail không có. All the files are moved: Tất cả các tập tin được di chuyển:
    ROBOCOPY /E /COPY:DATSOU /MOVE /MINLAD:730 ROBOCOPY / E / Copy: DATSOU / MOVE / MINLAD: 730

    WHat am I doing wrong? Tôi đang làm gì vậy?

  2. king joz vua joz
    April 8th, 2009 14:55 08 Tháng Tư 2009 14:55
    4 4

    robocopy is a solid and efficient program. robocopy là một chương trình vững chắc và hiệu quả. it helped me a lot. nó đã giúp tôi rất nhiều.

  3. links for 2008-09-28 | benway.net liên kết cho ngày 28 tháng 9 năm 2008 | benway.net
    September 28th, 2008 18:01 Tháng 9 28, 2008 18:01
    3 3

    [...] Robocopy Syntax, Command Line Switches and Examples » My Digital Life (tags: robocopy copy) [...] [...] Robocopy Cú pháp, Command Line tắc và ví dụ »Digital My Life (tags: robocopy chép) [...]

  4. kicker kicker
    September 27th, 2008 01:22 27 tháng 9 2008 01:22
    2 2

    Note that the XF switch does not accept folder\wildcard. Lưu ý rằng việc chuyển đổi XF không chấp nhận thư mục \ ký tự đại diện. This is MAJOR deficiency. Đây là MAJOR thiếu hụt.

    ERROR : Invalid Parameter #4 : “C:\dir\*.doc” ERROR: Invalid Parameter # 4: "C: \ dir \ *. doc"
    or hoặc
    ERROR : Invalid Parameter #4 : “\dir\*.doc” ERROR: Invalid Parameter # 4: "\ dir \ *. doc"
    or hoặc
    ERROR : Invalid Parameter #4 : “dir\*.doc” ERROR: Invalid Parameter # 4: "dir \ *. doc"

    –kicker -Kicker
    http://www.123facts.com http://www.123facts.com

  5. Microsoft Robocopy GUI Free Download » My Digital Life Microsoft Robocopy GUI Miễn phí »My Digital Life
    May 8th, 2007 02:59 08 tháng 5 2007 02:59
    1 1

    [...] 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. [...] Robocopy là một tiện ích cao cấp với bản sao có tính năng tự động khôi phục tập tin chuyển giao về lỗi hoặc gián đoạn mạng, hoặc phục hồi từ việc sao chép tập tin bị chấm dứt, cộng với việc sao chép chọn lọc dựa trên các tiêu chí mới hoặc cập nhật. 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. Bên cạnh đó, cũng có thể bảo quản Robocopy tất cả các thuộc tính tập tin và thông tin, bao gồm cả ngày tháng và thời gian tem, kiểm soát an ninh danh sách truy cập (ACL) và nhiều hơn nữa trong khi sao chép tập tin. Robocopy is definitely a more useful utility, especially for advanced users. Robocopy chắc chắn là một tiện ích hữu dụng hơn, đặc biệt là cho người dùng cao cấp. However, Robocopy came built-in in Windows Vista with command line interface only. Tuy nhiên, đến Robocopy built-in trong Windows Vista với giao diện dòng lệnh chỉ. To ease the task of using Robocopy, a GUI (graphical user interface) has been made available by Microsoft. Để dễ dàng nhiệm vụ bằng cách sử dụng Robocopy, một GUI (giao diện đồ họa người dùng) đã được làm sẵn có của 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. Robocopy giao diện cho phép bạn xác định nguồn của bạn và đường dẫn mục tiêu, cũng như các tùy chọn tùy chỉnh bất kỳ hoặc bộ lọc bạn muốn áp dụng, có hoặc không muốn tạo ra một bản đồ ổ đĩa, nơi bạn muốn để lưu trữ các bản ghi kết quả, và vv. 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. Đây là tất cả các tính năng mà bạn chắc chắn có thể thực thi với truyền thống Robocopy chức năng dòng lệnh, nhưng đối với nhiều người, có những lựa chọn hợp nhất trong một giao diện đồ họa thực sự có thể đơn giản hóa quá trình. [...] [...]

Leave a Reply Để lại một trả lời

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Bạn có thể sử dụng các thẻ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q <strike> <strong>

Subscribe to comments feature has been disabled. Thuê bao với ý kiến đều đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo mới nhất đăng ý kiến, đăng ký với My Digital Life Comments RSS feed My Digital Life kiến RSS feed or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong email tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm đến các Điều khoản Điều

robocopy switches robocopy chuyển mạch - -- robocopy robocopy - -- robocopy syntax robocopy cú pháp - -- robocopy examples robocopy ví dụ - -- robocopy commands robocopy lệnh - -- robocopy backup mode robocopy chế độ sao lưu - -- using robocopy sử dụng robocopy - -- "windows 7" +move junction points "cửa sổ 7" + di chuyển điểm giao nhau - -- copy robocopy directory sao chép thư mục robocopy - -- copy folder by robocopy sao chép thư mục bằng cách robocopy - -- howto install robocopy howto cài đặt robocopy - -- robocopy parameters robocopy thông số - -- robocopy robocopy - -- robocopy example robocopy ví dụ - -- robocopy error 123 robocopy lỗi 123 - -- robocopy syntax examples robocopy ví dụ về cú pháp - -- robocopy job file format robocopy việc định dạng tập tin - -- robocopy exe command line robocopy exe dòng lệnh - -- robocopy exclude files robocopy loại trừ các tập tin - -- use robocopy command sử dụng lệnh robocopy - --