ROBOCOPY

Asked By FRED SHIKE
20-Apr-09 03:38 PM
Earn up to 0 extra points for answering this tough question.

tring to copy my shared dirve to the d: drive of a diferent serve(valley2) .

Is the following correct ?

ROBOCOPY  d: \shared\*.*  d:\\valley2\backup /mir /copyall

 


 

  hi

Ravenet Rasaiyah replied to FRED SHIKE
20-Apr-09 09:49 PM
hi

try this

xcopy w:\folder\*.xls f:\Budget\Data\

w is network mapped drive
thank you

  ROBOCOPY

Venkat K replied to FRED SHIKE
20-Apr-09 10:11 PM
Create this as a batch file then run it twice.

@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%

  RE::ROBOCOPY

Santhosh N replied to FRED SHIKE
20-Apr-09 10:42 PM
You could use any of the following for performance related issues too taking care of...
robocopy \\sharedDRive\shared d:\\valley2\backup /w:30 /r:13

robocopy /mir \\SharedDrive\shared\ d:\\valley2\backup\ /XD dirs $RECYCLE.BIN /XN /XO

In your syntax, i suppose it works if you remove *.*


Create New Account