Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

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

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
detox1978
Asked:
detox1978
  • 4
  • 3
1 Solution
 
SamuraiCrowCommented:
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
 
rpartingtonCommented:
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
 
detox1978Author Commented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
SamuraiCrowCommented:
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
 
SamuraiCrowCommented:
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
 
detox1978Author Commented:
>> 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
 
SamuraiCrowCommented:
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
 
detox1978Author Commented:
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

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