Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Robocopy Question

Status
Not open for further replies.

adfreek

IS-IT--Management
Jul 22, 2003
227
US
I'm using the robocopy tool in my migration of data from Novell to a Windows NAS appliance. I've had no problems performing the original bulk data copies from source (Novell File servers) to destination (NetAPP NAS). Here is a clip of the command syntax I used for the original copy. Please note, I simply mapped a drive to letter I: which was the Novell source file server. From there, I launched the following .bat file:

Echo "Processing Volume "DATA"
robocopy I: \\nasappliance\novellservername\DATA /MIR /E /V /W:10 /R:1 /NP /LOG+:c:\migrate\novellservername_DATA.log
map del I:
CLS

Now, the problem is I have is under that "data" folder, there was a folder called "users" which consisted of all users home directories. We are placing the home dir's on a seperate destination, so after the original builk copy, we moved the "users" folder and all subfolders to a different final destination. This leads me to my problem. I know need to set up a .bat file to support "delta" or "differential" copies which I'll need to run every night until the scheduled cutover date. Typically, I would simply run the existing .bat file but I DO NOT want to copy the \\novellservername\data\USERS folder or it's subfolders during the delta.

I know there is an /XD switch or something like that. Can someone help me and provide the exact syntax to support delta copies but not include that USERS folder ?

Thanks
 
/XD will allow you to specify to not copy a directory at all.

/XP directorname

If you just want the deltas, you will want to use /XO which tells Robocopy to ignore old files.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
I tried adding the /XD I:\users switch...I think that may have worked. Per your recommendation, I also add /XO

I'm now finding the following error in my log file

New File 59392 013103 MA BA 60 report.xls

ERROR 3 (0x00000003) Creating Destination Directory

\\nasapplicance\novellserver\DATA\SHARED\New Shared Folders\SYSTEMS\Trade_Finance & Controls\REQUIRES ADD'L CLEAN-UP\Reports - Generated\2002\Generated Crystal Reports_Jul02_MAR03\End Of Month Reports SEPT02_MAR03\DISTRIBUTED EOM REPORTS\013103 MONTH END REPORxü

The system cannot find the path specified.

Waiting 5 seconds...

Any idea?
 
Not positive but I believe that your directory structure may be too deep. You might need to run the script again from a deeper level.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Older versions of robocopy from W2K resource kit, will not copy files deeper than 255 chars. Your path and filename above is truncated:

Code:
\\nasapplicance\novellserver\DATA\SHARED\New Shared Folders\SYSTEMS\Trade_Finance & Controls\REQUIRES ADD'L CLEAN-UP\Reports - Generated\2002\Generated Crystal Reports_Jul02_MAR03\End Of Month Reports SEPT02_MAR03\DISTRIBUTED EOM REPORTS\013103 MONTH END REPORxü

If you can get the XP resource kit, then it will go deeper than 255 char.


We are using robocopy to replicate a file server with our backup server. Using the /MIR is like a differential backup because it will only backup files with the archive bit set. With the newer version of robocopy you can also throttle the transfer rate (64 Kbs, 128 Kbs, etc...).

Paul

Work on Windows, play on Linux.
 
I was able to obtain a machine running XP so that I could the latest version of robocopy which resolved my character limitation issue. No more of those type of errors, however, I do have another issue in my log.

Here is a cut/paste:

New File 26112 DE & PA DIST LIST LC EOM REPORT_110602.xls

2004/12/20 20:47:35 ERROR 123 (0x0000007B) Copying File Q:\SHARED\New Shared Folders\SYSTEMS\Trade_Finance & Controls\REQUIRES ADD'L CLEAN-UP\Reports - Generated\2002\Generated Crystal Reports_Jul02_MAR03\End Of Month Reports SEPT02_MAR03\DISTRIBUTED EOM REPORTS\DE & PA DIST LIST LC EOM REPORT_110602.xls

The filename, directory name, or volume label syntax is incorrect.

I did a comparison, and noticed that the destination NAS device has the full path of (notice it's missing the last folder from what is trying to be copied)

Q:\SHARED\New Shared Folders\SYSTEMS\Trade_Finance & Controls\REQUIRES ADD'L CLEAN-UP\Reports - Generated\2002\Generated Crystal Reports_Jul02_MAR03\End Of Month Reports SEPT02_MAR03\

It looks as if a new folder was created as well, however, since it's not on the destination, it's failing?

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top