jamster69 Posted September 30, 2010 Posted September 30, 2010 Hi Guys im new to this forum so a quick hello:) Basically im looking for a quick command line for robocopy to copy files from NAS storage (source) to a western general nas box (destination) for a quick backup. The destination already has folders on it that i started copying using xcopy this had taken 5 days then failed so i don't want to have to recopy these and start again. So basically i want to copy all folders in the source directory including all subfolders to the destination directory but only to copy folders that are not already there. I had tired richcopy but this was taken far to long and xcopy seemed to be much faster although didn't have the same fault tolerance. There is a lot of data to be copied as quickly as possible , about 1.6TB so restart/recovery is a must. Thanks.
Guest TheLibrarian Posted September 30, 2010 Posted September 30, 2010 ROBOCOPY GUI Utility Spotlight: Robocopy GUI
jamster69 Posted September 30, 2010 Author Posted September 30, 2010 Hi TheLibrarian Thanks for the prompt reply , I had tired the GUI before and basically when i put in source , destination and correct parameters and hit copy nothing happend , I had tried this several times hence the reason i would like to try it from the command line cheers.
sparkeh Posted September 30, 2010 Posted September 30, 2010 ...I had tired richcopy... Thanks. Try richcopy instead! I think he has 1
jamster69 Posted September 30, 2010 Author Posted September 30, 2010 Hi Guys thanks for all your replys , Im actually looking for someone to show me how they would write the xcopy command line with the correct syntax and parameters . Thats will be 100 correct and tested. I just want to copy and paste it in to the cmd.exe and run it . Cheers. ROBOCOPY \\Server1\nas1 \\Server2\backup /S /E /Z ....would this work ? copy everthing in source that is not in destination including all sub folders and files. Cheers.
jamster69 Posted October 1, 2010 Author Posted October 1, 2010 Just wondering , if I restart xcopy after there was a network outage to the destination will it start from where it let off ??
Guest TheLibrarian Posted October 1, 2010 Posted October 1, 2010 (edited) AFAIK xcopy does not have this facility, however I think robocopy does. I haven't looked to see if xcopy has been updated in a goodly number of years, so this could be wildly inaccurate. Edited October 1, 2010 by TheLibrarian Disclaimer
jamster69 Posted October 1, 2010 Author Posted October 1, 2010 Thans Librarian , I thouhgt so. Will this work ? ROBOCOPY \\Server1\nas1 \\Server2\backup /S /E /Z so will only copy directorys and files not already at the destination ? Cheers.
Guest TheLibrarian Posted October 1, 2010 Posted October 1, 2010 That looks OK, but you might want to look at these switches too... :: :: Retry Options : :: /R:n :: number of Retries on failed copies: default 1 million. /W:n :: Wait time between retries: default is 30 seconds. One locked file and your job is not going to finish on time.
sparkeh Posted October 1, 2010 Posted October 1, 2010 Thans Librarian , I thouhgt so. Will this work ? ROBOCOPY \\Server1\nas1 \\Server2\backup /S /E /Z so will only copy directorys and files not already at the destination ? Cheers. Yes that would appear to what you want. Edit: though those switches above would be handy 1
3s-gtech Posted October 1, 2010 Posted October 1, 2010 We use: robocopy \\server\share \\backup\share\ /MIR /R:00 /W:00 /XD *AppData* /COPY:dT I use the /XD *AppData tag to prevent copying of the AppData folder, as this brought the backup times up to 18 hours or so due to its mass of small files. /MIR removes deleted files, /R:00 is number of retries, /W:00 is wait time between retries. /COPY:dT sets robocopy to copy Data and Timestamps, can't use DAT as our Linux NAS won't copy NTFS flags. This has worked pretty well for us, completes in decent time too (150GB data). 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now