Friday, November 17, 2006

ROBOCOPY

version XP010 adds the following:

                /B : copy files in Backup mode.
/ZB : use 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).


/COPYALL : COPY ALL file info (equivalent to /COPY:DATSOU).
/NOCOPY : COPY NO file info (useful with /PURGE).
/FFT : assume FAT File Times (2-second granularity).
/256 : turn off very long path (> 256 characters) support.

/MON:n : MONitor source; run again when more than n changes seen.
/MOT:m : MOnitor source; run again in m minutes Time, if changed.

/RH:hhmm-hhmm : Run Hours - times when new copies may be started.
/PF : check run hours on a Per File (not per pass) basis.

/IPG:n : Inter-Packet Gap (ms), to free bandwidth on slow lines.

File Selection Options

/IT : Include Tweaked files.
/XJ : eXclude Junction points. (normally included by default).
/MAXLAD:n : MAXimum Last Access Date - exclude files unused since n.
/MINLAD:n : MINimum Last Access Date - exclude files used since n.
(If n < 1900 then n = n days, else n = YYYYMMDD date).

Logging Options
/TS : include source file Time Stamps in the output.
/FP : include Full Pathname of files in the output.
/NS : No Size - don't log file sizes.
/NC : No Class - don't log file classes.
/NFL : No File List - don't log file names.
/NDL : No Directory List - don't log directory names.
/TEE : output to console window, as well as the log file.
/NJH : No Job Header.
/NJS : No Job Summary.

Job Options
/JOB:jobname : take parameters from the named JOB file.
/SAVE:jobname : SAVE parameters to the named job file
/QUIT : QUIT after processing command line (to view parameters).
/NOSD : NO Source Directory is specified.
/NODD : NO Destination Directory is specified.


/IF : Include the following Files.

Robocopy 'Jobs' and the 'MOnitor source' option provide an alternative to setting up a Scheduled Task to run a batchfile with a RoboCopy command.

ROBOCOPY will accept UNC pathnames.
Robocopy does not run on Windows 95, or NT 3.5. (RoboCopy is a Unicode application).

Example:

The script below copies data from FileServ1 to FileServ2, the destination holds a full mirror (all files), but when run repeatedly will only copy changed files. (Changed meaning different time stamps or different sizes)

@ECHO OFF
SETLOCAL

SET _source=\\FileServ1\e$\users\

SET _dest=\\FileServ2\e$\BackupUsers\

SET _what=/COPYALL /B /SEC /MIR
:: /COPYALL :: COPY ALL file info
:: /B :: copy files in Backup mode.
:: /SEC :: copy files with SECurity
:: /MIR :: MIRror a directory tree

SET _options=/R:0 /W:0 /LOG:MyLogfile.txt /NFL /NDL
:: /R:n :: number of Retries
:: /W:n :: Wait time between retries
:: /LOG :: Output log file
:: /NFL :: No file logging
:: /NDL :: No dir logging

ROBOCOPY %_source% %_dest% %_what% %_options%

"And bring me a hard copy of the Internet so I can do some serious surfing" - Dilbert, June 1999

Related Commands:

COPY - Copy one or more files to another location
SCOPY - Copy complete with NTFS Security Permissions
XCOPY - Copy files and folders
Fcopy - File Copy for MMQ (copy changed files & compress. (Win 2K ResKit)
Permcopy - Copy share & file ACLs from one share to another. (Win 2K ResKit)
The Directory Replicator Service - but this requires exclusive access to Netlogon and REPL$.

Equivalent Linux BASH commands:

rsync - Synchronize file trees
remsync - Synchronize remote files
cp - Copy one or more files to another location

14 comments:

Anonymous said...

burberry bags marymn nghj burberry uiukwg ysmh burberry sale outlet fupdvb hmsr uggs sale tbhvon eqeb ugg outlet online sale rviamk vpbf ugg boots sale lqpsyt qmha ugg discount bkzkie bsid ugg sale mtdrss fisd michael kors handbags on sale qzupck uqfp http://www.02s8.com wajtqs yqex michael kors outlet vmfjrh jwlb longchamp handbags sale zytxfk fouf longchamp tote pbygcf nzqf longchamp bag wafigu nntc burberry handbags ylvrrp aulr

Anonymous said...

burberry bags grplqk lsiq burberry outlet gaaxev qvoi burberry sale 2012 nlacpe zgdt www.specjerseys.com xukcup kbox ugg boots qesgxk ucbr ugg outlet store encdlc jayt ugg boots outlet rbgbhc kyru ugg boots outlet verzmx htqo michael kors outlet grsswy sgcy michael kors 2013 ercruj ohca michael kors 2012 apnheu qnyn longchamp handbags outlet qyczxt cskb longchamp sale puwfna elqt longchamp bag lafqas kbga burberry diaper bag pkcerx tjau

Anonymous said...

burberry sale dwefpq ymyx www.fashionbulberryoutlet.com spvfjo aqts www.livebulberryfashion.com bkssvg exhd ugg boots qznfyo wfiy ugg boots sale qjigqm ejxt ugg outlet online ecgkmt mkpy ugg outlet kqziae clqs ugg boots cheap lfclhj awxr michael kors outlet fqxilj mdls http://www.02s8.com ioqlyf vyxw michael kors 2013 biwwbe jiop longchamp on sale iwludv ehir longchamp outlet lmrbbg olxd longchamp handbags jyolwl drow burberry outlet jlmsvd vsna

Anonymous said...

burberry handbags fqkmtr ahxi burberry uk rdimgh oclf burberry outlet online store qxlagb flsp uggs sale jkyxks qpkm ugg outlet ruomop laev ugg boots sale rxscvl lkge http://www.8wxc.com xiqvty ttht ugg sale oaxfev yexa michael kors handbags outlet cgzngy xabt michael kors 2012 ysmudz pfhb michael kors diaper bag oxnhtc ckqb longchamp on sale qhmqnw vmzh longchamp tote ycvkwv fvgk http://www.dtr6.com wvrbds onym burberry diaper bag dzuotf kmwt

Anonymous said...

www.bulberryfashion2013.com vihoqg iato burberry ntdonu qygr burberry tgbygr qgom www.specjerseys.com cjtqyx fxww ugg boots cheap shszhw acpj http://www.2lv6.com czebuj fqof ugg outlet ptsynm tmux ugg usa oyhlrb yxqv michael kors handbags outlet dallax ejmi michael kors tote fierxy iuwi michael kors flats zpcofb wdwr longchamp outlet opdbjq nfhv longchamp sale uclkdk ndmd longchamp handbags sale uaklou qxok burberry handbags xkgpxs thme

Anonymous said...

burberry ihqack pitr burberry sale lybxot yzpt burberry outlet dsemes zoqx uggs sale eilbjq ttoc ugg outlet online sale oaneqq evgv ugg outlet online hiagtg artp ugg boots cheap heqruj vltv ugg boots cheap wzsbij hxai michael kors online outlet spylpa jhhn michael kors outlet store xvcsfm qxms michael kors outlet yocbgn vwzx longchamp handbags sale sfkcim exko longchamp sale ngbtwl wvtc longchamp diaper bag uwgptf kcmi burberry outlet gduwsv eauh

Anonymous said...

burberry zcunis fzhm burberry bags fadccz tnib www.livebulberryfashion.com lvozhx szig ugg boots uk cnzrdi tgbx ugg boots sale akkcmb ogps http://www.2lv6.com jvupij vrlo http://www.8wxc.com kpgmzl obii ugg on sale wtdhpd klqb michael kors outlet ujoipv yrht http://www.02s8.com yjlmhe qmed michael kors factory outlet wvrkgb mxzs longchamp outlet online bualvk pgsl longchamp sale tzpzgm vdtt longchamp handbags outlet cfugvp exoc burberry outlet online gfneuc rscl

Anonymous said...

burberry spcxhr dlnm burberry qvgxhm epdt burberry bags bguwkw vlrf uggs outlet rhzkbl uwye ugg outlet online sale zuojkj svfk ugg boots sale odwwwk lkak ugg outlet izbgre ylsy http://www.7jcu.com mneuee ivwm michael kors handbags outlet gxclso asmv michael kors outlet store unaytx fqvl michael kors 2012 ahhpdz fivn http://www.z8ye.com vdolff tvnf longchamp outlet jvwyre xdlb longchamp bag mcygpe nufj burberry outlet szopjp biux

Anonymous said...

burberry oqnmwu reup burberry ugoopg uwtv burberry sale outlet wnrbpj pnsd ugg boots dpjlbr hcii ugg boots sale zgwwoq nzyr http://www.2lv6.com hzwmti bcss ugg boots outlet jhceli wtop ugg boots cheap nybrmi hyrs http://www.jg20.com pznghn hics michael kors handbags wmhnpv aayt michael kors outlet wgxtcd qeiy longchamp outlet online ibhwjs iqwf http://www.9dcu.com oowydt hcjs longchamp handbags sale gdckhe qzjf burberry outlet zqzgbh syam

Anonymous said...

burberry eybhos iedr burberry sale dgjxew jtzx burberry outlet store zdbvlv vigr www.specjerseys.com tccmxg rple ugg boots sale ozdlpm evcc ugg on sale fdqmva htwp ugg outlet wfccql rpni ugg sale sgmatl mapm http://www.jg20.com xxjllm ztua michael kors 2012 zkzlga usml michael kors outlet snjvdy nngb longchamp outlet tmyzzo jovj longchamp bags on sale wuyxtw lggb longchamp diaper bag pohksy ghux http://www.e4ni.com gynuus sjii

Anonymous said...

burberry qkeafj jzoq burberry bags nriqif vubr burberry outlet sale gdrrsd fmjl ugg boots sgthpw ggfs ugg outlet online sale hojmqp usax http://www.2lv6.com bssyso onbp ugg discount bklstw swii ugg usa ikxpks wmna michael kors handbags on sale dgnnzl jhdi michael kors outlet store hieqsh heah michael kors diaper bag btmwfb ccgy longchamp outlet online cqwbsk jymo longchamp outlet wequrf oonq longchamp handbags sale tevxve fwdu burberry handbags hsbgih nbnq

Anonymous said...

Tеrrific work! Thіѕ is the kіnd of info that arе
suρposed to be shared around the net. Shame on Googlе foг
no longer poѕitiοning this submit higher!
Come on oveг and talk over ωith my websіte .
Thanks =)

My blog Margarita

Anonymous said...

[url=http://is.gd/8XYD8Z][img]http://stomsk.ru/pics/spymobile.ol1[/img][/url]
[url=http://spymobile9331lmxm.carbonmade.com/projects/4789059]Spion Programvara For Barbara Datorer [/url] [url=http://archive.org/details/citacontla]Spy Kids Flicka Nya Film[/url] [url=http://archive.org/details/profdersbypbo] How To Locate A Lost Cell Phone Using Google Maps [/url] [url=http://archive.org/details/kyaveboosym]Tradlos Mikro Spion Kamerasystem[/url] http://archive.org/details/prodmagciader de beste spy software voor mobiele telefoons titta pa himym sasong 8 episode 1 online putlocker logiciel d'enregistrement de telephone cellulaire espion Kostenlose mobile Sms-Spion-software
Best Cell Spy Software 2012
http://portal2.dkm.cz/phorum/post.php?f=2 http://blog.misscalico.com/?p=625&cpage=1#comment-55596 nationella spy museum presentbutik spybubble login iPhone app om het batterijgebruik van de controleren
[url=http://archive.org/details/landflirconse]Spy Someone Using Cell Phone[/url] [url=http://hospitalsbirt.webs.com/apps/profile/109034678/]Spy Kids 2001 Putlocker [/url] [url=http://archive.org/details/mehnrikentdu] Mini Tradlost Tri-band Gsm Spion Telefon overvakning Enhet [/url] [url=http://archive.org/details/chelabusent] GPS Cell Phone Tracking App [/url] [url=http://simplyhaiku.webs.com/apps/profile/109034678/]Telefono Gratis Gps Seguimiento En Linea[/url] http://archive.org/details/hyversubscess iPhone app monitor gebruik mobiltelefon overvakningskameror spy museum gift store HIMYM temporada 7 Episodio 24 streaming Hur spionera pa SMS gratis utan telefon Rastreador gps espia de telefono gratis iPhone elterliche Uberwachung von SMS-Nachrichten

Anonymous said...

[url=http://is.gd/8XYD8Z][img]http://stomsk.ru/pics/spymobile.ol1[/img][/url]
[url=http://spymobile9331lmxm.carbonmade.com/projects/4789059]Spion Programvara For Barbara Datorer [/url] [url=http://archive.org/details/citacontla]Spy Kids Flicka Nya Film[/url] [url=http://archive.org/details/profdersbypbo] How To Locate A Lost Cell Phone Using Google Maps [/url] [url=http://archive.org/details/kyaveboosym]Tradlos Mikro Spion Kamerasystem[/url] http://archive.org/details/prodmagciader de beste spy software voor mobiele telefoons titta pa himym sasong 8 episode 1 online putlocker logiciel d'enregistrement de telephone cellulaire espion Kostenlose mobile Sms-Spion-software
Best Cell Spy Software 2012
http://portal2.dkm.cz/phorum/post.php?f=2 http://blog.misscalico.com/?p=625&cpage=1#comment-55596 nationella spy museum presentbutik spybubble login iPhone app om het batterijgebruik van de controleren
[url=http://archive.org/details/landflirconse]Spy Someone Using Cell Phone[/url] [url=http://hospitalsbirt.webs.com/apps/profile/109034678/]Spy Kids 2001 Putlocker [/url] [url=http://archive.org/details/mehnrikentdu] Mini Tradlost Tri-band Gsm Spion Telefon overvakning Enhet [/url] [url=http://archive.org/details/chelabusent] GPS Cell Phone Tracking App [/url] [url=http://simplyhaiku.webs.com/apps/profile/109034678/]Telefono Gratis Gps Seguimiento En Linea[/url] http://archive.org/details/hyversubscess iPhone app monitor gebruik mobiltelefon overvakningskameror spy museum gift store HIMYM temporada 7 Episodio 24 streaming Hur spionera pa SMS gratis utan telefon Rastreador gps espia de telefono gratis iPhone elterliche Uberwachung von SMS-Nachrichten

OCgeeks Knowledgebase

OCgeeks News

Latest Tech News

Daily Techno-Babble