Solved

Moving Network Shares to a new drive while retaining permissions

Posted on 2006-11-23
7
361 Views
Last Modified: 2010-04-18
Hello,

I have added a new RAID array and controller to our SBS 2003 server and want to move the data folders from the existing single drive without having to completely reset the permissions. I have already moved the Exchange files without any problems.

The clients have mapped drives to the network shares.

Is there an easy way to do this, xcopy perhaps? If so what would be syntax to move an entire folder with subfolders and all files with security and permissions intact?

Would it work to take my latest backup and restore the folders in question to the new array?

Thank you for your help.

0
Comment
Question by:keintpoos
[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
  • 2
7 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 500 total points
ID: 18002056
You can use xcopy or robocopy.  My way is normally to:

xcopy using command below
advise users of change
disconnect old shares or set share permissons to none
xcopy again to copy any changes
connect shares to where they should be
Change share permissions back
Advise users go back on

xcopy /o /y /k /r /h /e /d C:\share\*.* D:\share

copies permissions (o), yes to overwrite, attributes (K), overwrite read only files (R), hidden and system files (H), subdirectoires and empty subdirs (E), and newer files only (D).

You might not need to do it twice but doing so with /d means if you copy once get it all ready and check access is OK etc. shut users off, copy again and the /d will copy any files they have changed .  Job done.

Al to so the shares, If you have many shares then changing the drives around so the new drive gets the old drive letter is the quickest way to get those back, otherwise they can be edited in the registry or edited manually or scripted with net share command.
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 18002138
For robocopy you'd want to use something like

robocopy MIRm /SEC /R:5 /W:5 /TEE /NP /LOG:logfile.txt c:\share D:\share

which copies all files and subdirs, deletes any files from dest that don't exist in source if for instance users have deleted a file since initial copy and restricts the number of retries on copies and writes the output to a logfile and the screen

Ask if you want any more info on any of this.

Good luck

Steve
0
 
LVL 14

Expert Comment

by:theruck
ID: 18002833
i think that you do not need any of these utilities at all as the standard copying retains the file permissions
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 43

Expert Comment

by:Steve Knight
ID: 18002863
If you are talking about using explorer to do the copy it will only retain permissions on the same partition, not a different drive.  Your other method is using a backup program to backup and restore of course (good test of your backup system) or if you have veritas etc. some will do a copy backup, i.e. copy from a to b.



Steve
0
 

Author Comment

by:keintpoos
ID: 18002958
I don't believe that is the case, theruck. Copying over does not restore the same set of permissions for the folder I tested that with.
0
 
LVL 14

Expert Comment

by:theruck
ID: 18003008
you are right i tested it now and it does not work between 2 drives
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 18003622
Thanks for the points, hope it helped.

Steve
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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DHCP restore question Server 2003 to 2012 3 59
setup share and NTFS permissions. 12 99
Moving RDP Server to New Server. 3 79
Alert on Server memory 2 55
Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…

739 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