Link to home
Start Free TrialLog in
Avatar of CityofKerrville
CityofKerrvilleFlag for United States of America

asked on

Copying file from one network share to another

Hello EE,

I am about to start pulling my hair out over this.  I have spent most of the day trying to find a away to copy several hundred GB of data from one drive to another on my file server without blowing away all the permissions and share settings.  I have been toying with XCOPY and ROBOCOPY all day and have been unsuccessful.  Once I think I have it working correctly, I am unable to duplicate the results.  I have read through numerous posts here and followed many of the links already provide and to now avail.  Does anyone know a way to accomplish this?  I realize that preserving the share names many not be possible but I am for more concerned with the the countless various NTFS permissions that are in place throughout the directory tree.  here are a few of the commands I have been running through.

robocopy \\server\share$\path \\server\share$\path /COPYALL /E /V /LOG:C:\ROBOCOPY.TXT

Additionally, I want to send the output to a text file to view all skipped and failed files.

There has got to a be a working script out there somewhere to accomplish this task.

Thanks,

CityofKerrville
Avatar of lucius_the
lucius_the
Flag of Croatia image

Are you your servers in a domain ?
Unless both of your servers are members of the same domain, different security ID-s will exists on each server. It's impossible to copy with permissions from one site to the other in such case. Or more precisely, the permissions on the other side would be useless.
Avatar of CityofKerrville

ASKER

It is actually all on the same server but on different drives.  

1 iSCSI SAN drive (Source)
1 Local drive (Destination)
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hm, why are you using UNC names, try using paths and drive letters instead.
I guess I completely neglected to try and run the command locally.  I had been doing it remotely and may have a working robocopy string that needs to be tested a little more.
This was exactly what I needed.  I even found this

http://technet.microsoft.com/en-us/magazine/2006.11.utilityspotlight.aspx

Made it a snap.  I copied all 64gb over night and was able to go back through the failure list and cleanup this morning.  Thanks for the help.