• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 699
  • Last Modified:

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
0
CityofKerrville
Asked:
CityofKerrville
  • 3
  • 2
1 Solution
 
lucius_theCommented:
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.
0
 
CityofKerrvilleAuthor Commented:
It is actually all on the same server but on different drives.  

1 iSCSI SAN drive (Source)
1 Local drive (Destination)
0
 
oBdACommented:
The basic command looks okay.
But you usually don't need /v, especially not if you're copying large amounts of files. I usually use /nfl and /ndl, because success entries are rather useless; even with /nfl and /ndl, errors will be reoprted.
You might want to define /r:X and /w:X; if you have a stable network connection, set both of these to 0. if the connection drops sometimes, and if you're copying large files, use /z and set /r and /w to reasonable values.
Then it's best to have either the source or the target folder local; that way, the data doesn't have to pass through the client's network stack twice.
As far as copying the permissions goes: create the target folder manually, uncheck the inheritance for this folder, and configure the permissions the same as the source folder; I've made the experience that robocopy sometimes has problems copying the permissions for the target folder (only). The rest works flawlessly, and I've used successfully to migrate data in the TB range.
Check out robocopy.doc in the installation folder, it's a pretty good documentation.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
lucius_theCommented:
Hm, why are you using UNC names, try using paths and drive letters instead.
0
 
CityofKerrvilleAuthor Commented:
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.
0
 
CityofKerrvilleAuthor Commented:
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now