Robocopy
Copying cifsshare share from VG8 to Isilon
robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\cifsshare /copyall /E /r:0 /w:0 /log+:backoutrobo.out /tee
Other Examples:
Robocopy C:\Scripts \\RemoteComputerName\Share /E /SEC /R:1 /W:1 /LOG:c:\Robocopylog.txt /TEE equalent to
C:\Users\user>robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\ifs\corpist01\cifsshare /copyall /r:1 /w:1 /log+:backoutrobo.o
ut /tee
robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\cifsshare /copyall /E /r:0 /w:0 /log+:backoutrobo.out /tee
Robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\ifs\corpist01\cifsshare /E /SEC /R:1 /W:1 /LOG:c:\Robocopylog.txt /TEE
C:\Users\user>robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\cifsshare /copyall /E /r:1 /w:0 /log+:backoutrobo.out /tee
Description:
I donít recommend to use /CopyAll paremeter as it will also copy the owner information to the remote computer which will cause problem in the
future if the current owner is Administrator on the current computer or a user who doesnot exist.
I also include log function to save the logs in C:\Robocopy.txt file so that you can check for failures afterwards.
The /R and /W are retry options, I specify the retry times as one and wait time as 1 second so that it wonít be stuck on retrying as the default
setting for retry times is 1 million
Please make sure the account you use to run the Robocopy command has read and write access to the \\Remote_ComputerName\Share.
C:\Users\user>robocopy \\source.test.abc.com\cifsshare \\destination.test.abc.com\cifsshare
/copyall /lev:1 /r:0 /w:0 /log+:backoutrobo.out /tee
Log File : C:\Users\user\backoutrobo.out
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Feb 03 11:31:49 2014
Source : \\source.test.abc.com\cifsshare\
Dest : \\destination.test.abc.com\cifsshare\
Files : *.*
Options : *.* /TEE /COPYALL /LEV:1 /R:0 /W:0
------------------------------------------------------------------------------
1 \\source.test.abc.com\cifsshare\
*EXTRA File 51285 ramtest.PNG
*EXTRA File 17920 Thumbs.db
*EXTRA File 170885 vnxe.PNG
100% New File 21508 .DS_Store
2014/02/03 11:31:50 ERROR 5 (0x00000005) Copying NTFS Security to Destination File \\source.test.
abc.com\cifsshare\.DS_Store
Access is denied.
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 0 0 0 1 3
Bytes : 21.0 k 0 0 0 21.0 k 234.4 k
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Mon Feb 03 11:31:50 2014
Output:
Migration completed. Logs output
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1540 1539 1 0 0 0
Files : 11974 0 1 0 11973 3
Bytes : 78.773 g 0 21.0 k 0 78.773 g 234.4 k
Times : 0:37:47 0:35:47 0:00:00 0:01:59
Ended : Mon Feb 03 12:31:38 2014
use robocopy
ReplyDeleteI have used robocopy and didn’t find any satisfactory results. It all gets stuck at some point or another, one software which I found interesting and would recommend to anyone is GS RichCopy. Its been 2 years using this and till now no complaints whatsoever. Some of its extra features include NTFS support, multi threaded file transfer, and many more. Its worth the money. Hope it helped you all!
ReplyDelete