?
Solved

Move the files from one server to another and retain the NTFS / Share permissions

Posted on 2006-06-29
8
Medium Priority
?
492 Views
Last Modified: 2010-07-26
I have to migrate a file & print server from an old 2000 server to a brand new 2003 server.


My question is,

any idea how to move the files and retain the NTFS / Share permissions?


Cheers
Phil
0
Comment
Question by:detox1978
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 9

Accepted Solution

by:
SamuraiCrow earned 2000 total points
ID: 17012069
Download Robocopy Here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en

It is in the Windows 2003 Resource Kit.  Here is a basic example of the syntax:

robocopy "source" "destination" *.* /E /Copyall /R:1 /W:1 /IS

This will copy everything and keep the NTFS permissions.  If you need help working out the syntax let me know.

Crow
0
 
LVL 9

Expert Comment

by:rpartington
ID: 17012459
You may well get a lot of recommendations here for what your looking for, but for a pure freebie that works perfectly go with crows recommendation ROBOCOPY works spot on and can easily be run from a floppy disk.
0
 
LVL 2

Author Comment

by:detox1978
ID: 17013836
cheers guys, ROBOCOPY seems to do the trick....

A couple of quick questions,

1. Can this be configured to create a log of file copied / skipped etc...?
2. How does it handle open files / locked files / files it cant copy...?
3. Can it be configured to continue if it cant copy a file?
4. Can it verify the data after the copy?


also, is there anything else i should think about... :O)
0
Technology Partners: 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!

 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 17014651
1. Can this be configured to create a log of file copied / skipped etc...?

If you have a few megs to spare you could modify the script to do this:
robocopy "source" "destination" *.* /E /Copyall /R:1 /W:1 /IS > c:\Results.txt
This basically pipes the output of the batch file to a text file on the C:\ drive called results.txt.  I do it all the time.


2. How does it handle open files / locked files / files it cant copy...?

It will keep going and you'll see the missed file in the error log discussed in question #1


3. Can it be configured to continue if it cant copy a file?

The /R:1 and /W:1 Basically tell it to wait one second and retry one time on a failure.  This will keep it going even if it can't copy a particular file.


4. Can it verify the data after the copy?

There is no verify method persay although In 5 years of using it I have never had a corrupt file issue.  One nice feature it does have is that if you copy the source to the destination again it will skip over identical files (making the process much faster).  I often do this with my file server migrations to "verify" that I have the all of the files.  Of course it goes without saying that you should have a current tested backup before any major migration (Backup Exec has a verify option :)
0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 17014663
One more quick note:

To have the fewest number of locked files modify the share permissions so that only the account being used to run robocopy has access.  This helps on items like databases and PST files.  Once the copy is done you can restore user access to the new server.
0
 
LVL 2

Author Comment

by:detox1978
ID: 17018150
>> To have the fewest number of locked files modify the share permissions so that only the account being used to run robocopy has access
How do i do this?

Should i disconnect any users from the server before i run the script?




Thanks again for your time.

D

0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 17021981
Most file servers have two sets of permissions:

NTFS Level Permissions
Share Level Permissions

You can access the share level permissions on a shared folder by right clicking on it and going to the sharing tab.  From here click the permissions button and you will see what groups have access (By default the everyone group is there unless explicitly removed).  Add whatever account you'll be running the script under (I always add domain admins) and give them full control.  Once they have full control remove the permissions for the everyone group on the share/s.  This will keep people from accessing these files (unless they are a domain admin) while you arìpying them.  

Crow
0
 
LVL 2

Author Comment

by:detox1978
ID: 17023782
thanks for all the help, i've now migrated the server, and everything seems to work ok.


For anyone who reads this this is what i ended up doing / using.


Printer migration - Print Mig (a microsoft wizard)
Files and NTFS permissions migration - Robocopy (a microsoft wizard)
Shares migration - I exported the registry hive from [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares] this includes the permissions :o)


Thanks again

D
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question