プロジェクト

全般

プロフィール

Robocopy » 履歴 » バージョン 1

sylow castle, 2019/04/21 22:01

1 1 sylow castle
# Robocopy
2
3
頑張ってrobocopyの使い方を翻訳する
4
5
6
7
## 訳
8
9
### その1
10
11
```
12
-------------------------------------------------------------------------------
13
   ROBOCOPY     ::     Windows向けの堅牢なファイルコピー
14
-------------------------------------------------------------------------------
15
16
  開始    : 2019年4月21日 21:49:46
17
  コピー元 -
18
  コピー先 -
19
20
    ファイル :
21
  オプション : /DCOPY:DA /COPY:DAT /R:1000000 /W:30
22
23
------------------------------------------------------------------------------
24
25
エラー : 無効な引数 #1 : "/help"
26
27
       簡単な使い方  :: ROBOCOPY <コピー元> <コピー先> /MIR
28
29
            <コピー元> :: コピー元ディレクトリ (ドライブ文字:\パス または \\サーバー\共有フォルダ\パス).
30
            <コピー先> :: コピー先ディレクトリ  (ドライブ文字:\パス または \\サーバー\共有フォルダ\パス).
31
               /MIR :: ディレクトリツリーを忠実に復元します(原語:Mirror).
32
33
    これ以上の使い方の情報が欲しいとき ROBOCOPY /?
34
35
36
****  /MIR はコピーするのと同じように「削除も」します
37
```
38
39
### その2
40
41
```
42
-------------------------------------------------------------------------------
43
   ROBOCOPY     ::     Windows用堅牢なファイルコピー
44
-------------------------------------------------------------------------------
45
46
  開始 : 2019
47
48
```
49
50
51
## 元の文
52
53
### その1
54
55
```
56
robocopy /help
57
58
-------------------------------------------------------------------------------
59
   ROBOCOPY     ::     Robust File Copy for Windows
60
-------------------------------------------------------------------------------
61
62
  Started : 2019年4月21日 21:49:46
63
   Source -
64
     Dest -
65
66
    Files :
67
  Options : /DCOPY:DA /COPY:DAT /R:1000000 /W:30
68
69
------------------------------------------------------------------------------
70
71
ERROR : Invalid Parameter #1 : "/help"
72
73
       Simple Usage :: ROBOCOPY source destination /MIR
74
75
             source :: Source Directory (drive:\path or \\server\share\path).
76
        destination :: Destination Dir  (drive:\path or \\server\share\path).
77
               /MIR :: Mirror a complete directory tree.
78
79
    For more usage information run ROBOCOPY /?
80
81
82
****  /MIR can DELETE files as well as copy them !
83
```
84
85
### その2
86
87
```
88
robocopy /?
89
90
-------------------------------------------------------------------------------
91
   ROBOCOPY     ::     Robust File Copy for Windows
92
-------------------------------------------------------------------------------
93
94
  Started : 2019年4月21日 21:50:27
95
              Usage :: ROBOCOPY source destination [file [file]...] [options]
96
97
             source :: Source Directory (drive:\path or \\server\share\path).
98
        destination :: Destination Dir  (drive:\path or \\server\share\path).
99
               file :: File(s) to copy  (names/wildcards: default is "*.*").
100
101
::
102
:: Copy options :
103
::
104
                 /S :: copy Subdirectories, but not empty ones.
105
                 /E :: copy subdirectories, including Empty ones.
106
             /LEV:n :: only copy the top n LEVels of the source directory tree.
107
108
                 /Z :: copy files in restartable mode.
109
                 /B :: copy files in Backup mode.
110
                /ZB :: use restartable mode; if access denied use Backup mode.
111
                 /J :: copy using unbuffered I/O (recommended for large files).
112
            /EFSRAW :: copy all encrypted files in EFS RAW mode.
113
114
  /COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT).
115
                       (copyflags : D=Data, A=Attributes, T=Timestamps).
116
                       (S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
117
118
119
               /SEC :: copy files with SECurity (equivalent to /COPY:DATS).
120
           /COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU).
121
            /NOCOPY :: COPY NO file info (useful with /PURGE).
122
            /SECFIX :: FIX file SECurity on all files, even skipped files.
123
            /TIMFIX :: FIX file TIMes on all files, even skipped files.
124
125
             /PURGE :: delete dest files/dirs that no longer exist in source.
126
               /MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).
127
128
               /MOV :: MOVe files (delete from source after copying).
129
              /MOVE :: MOVE files AND dirs (delete from source after copying).
130
131
     /A+:[RASHCNET] :: add the given Attributes to copied files.
132
     /A-:[RASHCNET] :: remove the given Attributes from copied files.
133
134
            /CREATE :: CREATE directory tree and zero-length files only.
135
               /FAT :: create destination files using 8.3 FAT file names only.
136
               /256 :: turn off very long path (> 256 characters) support.
137
138
             /MON:n :: MONitor source; run again when more than n changes seen.
139
             /MOT:m :: MOnitor source; run again in m minutes Time, if changed.
140
141
      /RH:hhmm-hhmm :: Run Hours - times when new copies may be started.
142
                /PF :: check run hours on a Per File (not per pass) basis.
143
144
             /IPG:n :: Inter-Packet Gap (ms), to free bandwidth on slow lines.
145
146
                /SL :: copy symbolic links versus the target.
147
148
            /MT[:n] :: Do multi-threaded copies with n threads (default 8).
149
                       n must be at least 1 and not greater than 128.
150
                       This option is incompatible with the /IPG and /EFSRAW options.
151
                       Redirect output using /LOG option for better performance.
152
153
 /DCOPY:copyflag[s] :: what to COPY for directories (default is /DCOPY:DA).
154
                       (copyflags : D=Data, A=Attributes, T=Timestamps).
155
156
           /NODCOPY :: COPY NO directory info (by default /DCOPY:DA is done).
157
158
         /NOOFFLOAD :: copy files without using the Windows Copy Offload mechanism.
159
160
::
161
:: File Selection Options :
162
::
163
                 /A :: copy only files with the Archive attribute set.
164
                 /M :: copy only files with the Archive attribute and reset it.
165
    /IA:[RASHCNETO] :: Include only files with any of the given Attributes set.
166
    /XA:[RASHCNETO] :: eXclude files with any of the given Attributes set.
167
168
 /XF file [file]... :: eXclude Files matching given names/paths/wildcards.
169
 /XD dirs [dirs]... :: eXclude Directories matching given names/paths.
170
171
                /XC :: eXclude Changed files.
172
                /XN :: eXclude Newer files.
173
                /XO :: eXclude Older files.
174
                /XX :: eXclude eXtra files and directories.
175
                /XL :: eXclude Lonely files and directories.
176
                /IS :: Include Same files.
177
                /IT :: Include Tweaked files.
178
179
             /MAX:n :: MAXimum file size - exclude files bigger than n bytes.
180
             /MIN:n :: MINimum file size - exclude files smaller than n bytes.
181
182
          /MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date.
183
          /MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.
184
          /MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.
185
          /MINLAD:n :: MINimum Last Access Date - exclude files used since n.
186
                       (If n < 1900 then n = n days, else n = YYYYMMDD date).
187
188
                /XJ :: eXclude Junction points and symbolic links. (normally included by default).
189
190
               /FFT :: assume FAT File Times (2-second granularity).
191
               /DST :: compensate for one-hour DST time differences.
192
193
               /XJD :: eXclude Junction points and symbolic links for Directories.
194
               /XJF :: eXclude symbolic links for Files.
195
196
::
197
:: Retry Options :
198
::
199
               /R:n :: number of Retries on failed copies: default 1 million.
200
               /W:n :: Wait time between retries: default is 30 seconds.
201
202
               /REG :: Save /R:n and /W:n in the Registry as default settings.
203
204
               /TBD :: wait for sharenames To Be Defined (retry error 67).
205
206
::
207
:: Logging Options :
208
::
209
                 /L :: List only - don't copy, timestamp or delete any files.
210
                 /X :: report all eXtra files, not just those selected.
211
                 /V :: produce Verbose output, showing skipped files.
212
                /TS :: include source file Time Stamps in the output.
213
                /FP :: include Full Pathname of files in the output.
214
             /BYTES :: Print sizes as bytes.
215
216
                /NS :: No Size - don't log file sizes.
217
                /NC :: No Class - don't log file classes.
218
               /NFL :: No File List - don't log file names.
219
               /NDL :: No Directory List - don't log directory names.
220
221
                /NP :: No Progress - don't display percentage copied.
222
               /ETA :: show Estimated Time of Arrival of copied files.
223
224
          /LOG:file :: output status to LOG file (overwrite existing log).
225
         /LOG+:file :: output status to LOG file (append to existing log).
226
227
       /UNILOG:file :: output status to LOG file as UNICODE (overwrite existing log).
228
      /UNILOG+:file :: output status to LOG file as UNICODE (append to existing log).
229
230
               /TEE :: output to console window, as well as the log file.
231
232
               /NJH :: No Job Header.
233
               /NJS :: No Job Summary.
234
235
           /UNICODE :: output status as UNICODE.
236
237
::
238
:: Job Options :
239
::
240
       /JOB:jobname :: take parameters from the named JOB file.
241
      /SAVE:jobname :: SAVE parameters to the named job file
242
              /QUIT :: QUIT after processing command line (to view parameters).
243
              /NOSD :: NO Source Directory is specified.
244
              /NODD :: NO Destination Directory is specified.
245
                /IF :: Include the following Files.
246
247
::
248
:: Remarks :
249
::
250
       Using /PURGE or /MIR on the root directory of the volume formerly caused
251
       robocopy to apply the requested operation on files inside the System
252
       Volume Information directory as well. This is no longer the case; if
253
       either is specified, robocopy will skip any files or directories with that
254
       name in the top-level source and destination directories of the copy session.
255
```