プロジェクト

全般

プロフィール

Robocopy » 履歴 » バージョン 2

健二 酒井, 2019/04/21 22:20

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