15
Oct
08

Robocopy - The robocop of file copy

I have found a great tool for file copy, called Robocopy (Robust File Copy)

It is free and forms part of the Windows Resource Kit.

Why do i think it’s so great?

a. Run from command line or Gui interface for maximum flexibility.
b. Use to Mirror File systems for backup or disaster recovery.
c. Full logging of the file copy process - Important
d. Unlike DFS, which is un-reliable and has no real logging, Robocopy can be used to mirror data across sites. By using basic commands only copy changes across the line, only run at certain times, exclude files and more…
e. Copying files exactly including NTFS security.

Check out this document for full command line usage.

_____________________________________________

This Sample script below, forms the basis of my Robocopy scripts;

_____________________________________________

@Echo Off

:: Get system’s current date into multiple variables
if “%1″==”GoTo” goto %2
echo e180 BF 07 01 B4 04 CD 1A E8 02 00 89 CA E8 00 00> %temp%.\t1.src
echo e18F 86 D6 88 D0 D4 10 0D 30 30 86 C4 AB 47 C3>> %temp%.\t1.src
for %%? in (rip 180 g w q) do echo %%?>> %temp%.\t1.src
echo SET %%1=XX XX XX XX> %temp%.\t2.bat
DEBUG %temp%.\t2.bat < %temp%.\t1.src > nul
call %temp%.\t2.bat _
%0 GoTo parse %_% MM DD YC YY
:parse
set %5=%1
shift
if not “%5″==”" goto parse
for %%? in (t1.src t2.bat) do del %temp%.\%%?
set _=
set date1=%DD%%MM%%YY%

robocopy “C:\test” “h:\test” /E /COPYALL /V /XO /NP /LOG:”c:\%date1%robocopylog.txt” /Z /R:10 /W:30 /purge /XF *.pst

_________________________________________

Popularity: 33% [?]

(Sponsors: GiftDay. Buy floral gifts, Carrol Boyes and experience gifts online! Click Here)


0 Responses to “Robocopy - The robocop of file copy”


  1. No Comments

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image




Categories