I have a batch script that uses robocopy to copy data from one file server (2003) to a new files server (2008R2 or 2012)
I have been running the tool on the destination server, thats why dst= local drive path.
The thing is its not copying all the data... I would also like to mirror exactly what is on the old server to the new server.
And security settings dont appear to be correct. I do not want to purge, move, or delete the data off the old server.
I want to setup a task or perhaps use the mon or mopt switches to run at specific times every night, until we are ready to turn the switch over.
Fianlly the log out put is a bit hairy... I just want to know what copied and if it was sucessful or failed, for both files, and directories
Of course I want all folders, and subfolders and all files within the given path.
/MIR /SEC / COPYALL?
I dont really know how the /XO /xd operates, but maybe its excluding files somehoW That should be mirrored.
I also want to copy all hidden files, read-only, system, achieved, and etc. except for the list of items below.
"Temporary Internet Files"
"System Volume Information"
This is the simple robocopy that was made, but its not using the /MIR command, and when I try to add it, it just sits there and does nothing.
Also the output lists all the files and etc. I just want a summary as forementioned.
Any help to make this perfecto.
set swt=/E /ZB /COPY:DATSOU /DCOPY:T /MT:128 /XO /R:10 /W:30 /V /TS /FP /ETA /TEE
robocopy %src% %dst% %swt% /LOG:%log%
More over, I have been updating the file for each old server to new server, is there a way to make one inclusive file that has
multiple sources and multiple desitnations
example src1 = oldserver1\share
dst1 = newserver1\share
src2 = oldserver2\Users
dst2 = newserver\users
So src1 copies the share from old to new and src2 copies user shares.
I would also like to have a bit of checking and notification in the script.
echo Testing to see if src host is online.
ping oldserver | find "TTL" > nul
if not errorlevel 1 (
Echo oldserver is online.
or if the server is offline - report it is down.
echo Preparing to copy src1 to dst1 and if doing more src2 and dst2 it would list that as well.
And can you make the preparing to copy in Bright RED.. so they can make sure path is correct?