Solved

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

Posted on 2006-06-29
8
484 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
  • 4
  • 3
8 Comments
 
LVL 9

Accepted Solution

by:
SamuraiCrow earned 500 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
 
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now