uppercut71412
asked on
Robocopy switches to copy/move data
Can someone send me instructions on how to move and copy data from one server to another server? I was told to use the following:
robocopy \\source_server\file \\destination_server\file /e /sec /x0 r:0 /log:c:\robocopy.log
Does this appear to be correct?
Lastly, I'm planning on just copying the data now and not move the data. At some point, we'll be doing a DELTA move so all files that may have been missed or updated, become parralel to both servers data.
The destination server is Server 2003 and the source server is MS 2008.
robocopy \\source_server\file \\destination_server\file /e /sec /x0 r:0 /log:c:\robocopy.log
Does this appear to be correct?
Lastly, I'm planning on just copying the data now and not move the data. At some point, we'll be doing a DELTA move so all files that may have been missed or updated, become parralel to both servers data.
The destination server is Server 2003 and the source server is MS 2008.
No there is a typo there, and more over try this much better
robocopy \\source_server\file \\destination_server\file /s /e /zb /sec /w:1 r:2 /log:c:\robocopy.log
robocopy \\source_server\file \\destination_server\file /s /e /zb /sec /w:1 r:2 /log:c:\robocopy.log
ASKER
Hello,
Can you explain what the above commands will actually do?
Can you explain what the above commands will actually do?
Sure.
/s /e /zb /sec /w:1 r:2
/S :: copy Subdirectories, but not empty ones.
/E :: copy subdirectories, including Empty ones.
/ZB :: use restartable mode; if access denied use Backup mode.
/SEC :: copy files with SECurity (equivalent to /COPY:DATS).
/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.
/s /e /zb /sec /w:1 r:2
/S :: copy Subdirectories, but not empty ones.
/E :: copy subdirectories, including Empty ones.
/ZB :: use restartable mode; if access denied use Backup mode.
/SEC :: copy files with SECurity (equivalent to /COPY:DATS).
/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.
ASKER
/zb:: restartable mode, can you explain a bit further.
/Z : Copy files in restartable mode (survive network glitch).
/B : Copy files in Backup mode.
/ZB : Use restartable mode; if access denied use Backup mode.
http://ss64.com/nt/robocopy.html
/B : Copy files in Backup mode.
/ZB : Use restartable mode; if access denied use Backup mode.
http://ss64.com/nt/robocopy.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you by chance already get any further with the migration of data ?
/e is for copying Subfolders, including empty Subfolders
/sec is for copying with security permissions
/x0 (should be /XO - letter o not number 0) is used for excluding older files already in destination (you don't need this yet imo)
r:0 (should be /R:0) is for disabling retries on failed copies
/log:file is for writing the log to a file
Formatted correctly:
robocopy \\source_server\file \\destination_server\file /e /sec /r:0 /log:c:\robocopy.log
This is for copying the files, not moving them from location to location, so you are fine with this.