« 2010年3月 | トップページ | 2010年5月 »

2010年4月

2010年4月 9日 (金曜日)

メモ: robocopy

以下、会社のWindows XPにぶっこんだ、Windows Server2003 リソースキットに入ってたrobocopyのヘルプ。コピペ&HTML化のための手入れ済みです。Vista以降標準コマンドになっていて、OSのバージョンごとにオプションが多少違うようです。おうちのWindows 7で後で確認してみよう。


ROBOCOPY :: Robust File Copy for Windows :: Version XP010


  Started : Fri Apr 09 12:24:23 2010

Usage :: ROBOCOPY source destination [file [file]...] [options]

source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
file :: File(s) to copy (names/wildcards: default is "*.*").

Copy options

.
/Scopy Subdirectories, but not empty ones.
/Ecopy subdirectories, including Empty ones.
/LEV:nonly copy the top n LEVels of the source directory tree.
/Zcopy files in restartable mode.
/Bcopy files in Backup mode.
/ZBuse restartable mode; if access denied use Backup mode.
/COPY:copyflag[s]what to COPY (default is /COPY:DAT).
(copyflags : D=Data, A=Attributes, T=Timestamps).
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
/SECcopy files with SECurity (equivalent to /COPY:DATS).
/COPYALLCOPY ALL file info (equivalent to /COPY:DATSOU).
/NOCOPYCOPY NO file info (useful with /PURGE).
/PURGEdelete dest files/dirs that no longer exist in source.
/MIRMIRror a directory tree (equivalent to /E plus /PURGE).
/MOVMOVe files (delete from source after copying).
/MOVEMOVE files AND dirs (delete from source after copying).
/A+:[RASHNT]add the given Attributes to copied files.
/A-:[RASHNT]remove the given Attributes from copied files.
/CREATECREATE directory tree and zero-length files only.
/FATcreate destination files using 8.3 FAT file names only.
/FFTassume FAT File Times (2-second granularity).
/256turn off very long path (> 256 characters) support.
/MON:nMONitor source; run again when more than n changes seen
/MOT:mMOnitor source; run again in m minutes Time, if changed.
/RH:hhmm-hhmmRun Hours - times when new copies may be started.
/PFcheck run hours on a Per File (not per pass) basis.
/IPG:nInter-Packet Gap (ms), to free bandwidth on slow lines.

File Selection Options

/Acopy only files with the Archive attribute set.
/Mcopy only files with the Archive attribute and reset it.
/IA:[RASHCNETO]Include only files with any of the given Attributes set.
/XA:[RASHCNETO]eXclude files with any of the given Attributes set.
/XF file [file]...eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]...eXclude Directories matching given names/paths.
/XCeXclude Changed files.
/XNeXclude Newer files.
/XOeXclude Older files.
/XXeXclude eXtra files and directories.
/XLeXclude Lonely files and directories.
/ISInclude Same files.
/ITInclude Tweaked files.
/MAX:nMAXimum file size - exclude files bigger than n bytes.
/MIN:nMINimum file size - exclude files smaller than n bytes.
/MAXAGE:nMAXimum file AGE - exclude files older than n days/date.
/MINAGE:nMINimum file AGE - exclude files newer than n days/date.
/MAXLAD:nMAXimum Last Access Date - exclude files unused since n.
/MINLAD:nMINimum Last Access Date - exclude files used since n.
(If n < 1900 then n = n days, else n = YYYYMMDD date).
/XJeXclude Junction points. (normally included by default).

Retry Options

/R:nnumber of Retries on failed copies: default 1 million.
/W:nWait time between retries: default is 30 seconds.
/REGSave /R:n and /W:n in the Registry as default settings.
/TBDwait for sharenames To Be Defined (retry error 67).

Logging Options

/LList only - don't copy, timestamp or delete any files.
/Xreport all eXtra files, not just those selected.
/Vproduce Verbose output, showing skipped files.
/TSinclude source file Time Stamps in the output.
/FPinclude Full Pathname of files in the output.
/NSNo Size - don't log file sizes.
/NCNo Class - don't log file classes.
/NFLNo File List - don't log file names.
/NDLNo Directory List - don't log directory names.
/NPNo Progress - don't display % copied.
/ETAshow Estimated Time of Arrival of copied files.
/LOG:fileoutput status to LOG file (overwrite existing log).
/LOG+:fileoutput status to LOG file (append to existing log).
/TEEoutput to console window, as well as the log file.
/NJHNo Job Header.
/NJSNo Job Summary.

Job Options

/JOB:jobnametake parameters from the named JOB file.
/SAVE:jobnameSAVE parameters to the named job file
/QUITQUIT after processing command line (to view parameters).
/NOSDNO Source Directory is specified.
/NODDNO Destination Directory is specified.
/IFInclude the following Files.

« 2010年3月 | トップページ | 2010年5月 »

Twitter

  • Twitter
2017年7月
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

最近のトラックバック

カテゴリー

  • BBQ
  • GTD
  • つくば
  • ウェブログ・ココログ関連
  • グルメ・クッキング
  • ニュース
  • パソコン・インターネット
  • メモ・備忘録
  • 健康
  • 労働問題
  • 携帯・デジカメ
  • 料理
  • 旅行・地域
  • 日記・コラム・つぶやき
  • 映画・テレビ
  • 書籍・雑誌
  • 経済・政治・国際
  • 芸能・アイドル
  • 趣味
  • 音楽
  • 食べ物
  • 食生活
無料ブログはココログ

Blog Parts

  • uniqlock