1819805 Members
3318 Online
109607 Solutions
New Discussion юеВ

robocopy Help

 
DaveVPL
Advisor

robocopy Help

Hello, Im new to admin work so please go easy....Im looking to copy around 170gb from one server to another and I would like to use robocopy, what I would like to do is run the command, and then run it again to cpy any files that have changed, so this is what I would like to ask, where to I run the robocopy EXE from? the source or the destination folder?

I tried a little test and got access denied?

Please could you give me some basic from-To scrips that you may use, or point me to a web site please, I need to keep the same folder structure and all the permitions, many thanks.

Dave
6 REPLIES 6
Igor Karasik
Honored Contributor

Re: robocopy Help

>>where to I run the robocopy EXE from? the source or the destination folder?

Doesn't matter. Just make sure you have robocopy.exe in your PATH (or use full path to robocopy.exe)
For example:
c:\robocopy\robocopy.exe d:\test\* \\servername\c$\test\ /sec

>>I tried a little test and got access denied?
Write exactly how you use robocopy and which error message you have.

Did you see example here ?
http://www.ss64.com/nt/robocopyXP.html
"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"

P.S. Since you are new on this forum and I see "I have assigned points to 0 of 2 responses to my questions" read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#22
DaveVPL
Advisor

Re: robocopy Help

robocopy \\london445\test$ \\london12\Audit$ /E /NP /R:2 /W:1 /SEC /purge /LOG:c:\robocopy\id.log

I was running robocopy rom the source and I saved the above file as a cmd file and then run it from the commannd prompt, I have looked at the site you said, ut where do you start, I like to run from a batch file so I can use the at command if needed, is my script wrong?
James Rayner
New Member

Re: robocopy Help

Hi,

I have just used the /MIR robocopy command on the same server. Copying around 40Gb of data form one folder to another. Around 40Gb into a folder with 35Gb already in it, of the same file and folder names.

I wankted it to skip all the files already in there of the same age and only to copy those that were newer.

The only problem is that it seems to have deleted mass amounts from the source OR has it moved the duplicated files?

Basically - Have I lost a vast amount (35Gb) of data please?

Or is /MIR supposed to move (delete duplicates from source) the files and folders, and I have only lost old duplicated files?

Thanks a lot,

James
Mike Vaughn
Respected Contributor

Re: robocopy Help

/MIR will purge files in the destintation folder that do not exist in the source folder.

James Rayner
New Member

Re: robocopy Help

Thanks a lot for that Michael.

So I have lost no files?
James Rayner
New Member

Re: robocopy Help

Hi, sorry, but it apeared that it was deleting files from the sourse folder very rapidly, not the destination folder.

Is there any way these files can be recovered, please?