Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to move shares from drive to drive on same server

Status
Not open for further replies.

boardburner

Technical User
Dec 23, 2003
77
US
Lost....
I have been reading everyone's threads on "moving" folders and retaining shares, permissions and all....but I need to move from "drive to drive" on the same server not a different server. Backup & restore would work great for another machine...but will not work using the same server. Am I missing something...I just want to move to a larger different drive without losing all my share, permissions and all.

Need help.......possibly a little devine guidance

G
 
Why do you say backup & restore won't work? I've done that exact same several times and it works like a charm. Backup the old drive. Shutdown, take out old one, put in new one, name it same drive letter. Do a full drive restore. You don't have to touch the registry or anything, as it already knows that drive letter.

Otherwise, there is a registry key you can export/import -call c:\windows\regedit /e d:\audit\server\reg-shares.txt "HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\SERVICES\LANMANSERVER\SHARES"
It contains the path name, including the drive letter.

Good luck,
Debi
 
DebiJo, you are correct if you are replacing a disk, but I think the request here is to MOVE files when both old and new drives are in the system.

I'm thinking the best way to do this would be to use XCACLS.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
xcopy won't copy the permissions. The simplest way is to use SCOPY or ROBOCOPY from the resource kit to copy the files/directories across. Then use RMTSHARE destroy and recreate the share with the correct permissions. It's a bit of work but I've successfully moved over a thousand user shares within a server and to other servers overnight using this method. The most dangerous part is the destroy & recreate as you can do the ROBOCOPY in advance and then just do an update copy when you want to go live.

Another copy program is Secure Copy. I've used this when moving data around a SAN before. Again you have to manipulate the shares yourself.

I think RMTShare is gone from the Win2K resource kit so you'll have to dig around and see if someone has it from the NT4.0 resource kit.
 
i should've clarified

in win2k:

xcopy /o

will copy file ownership and ACL's. more than likely you will also want /e, /h, /q and /f
 
Thanks for the suggestions from everyone....but
it seems like everything somehow slips back to "COPY" in some form or other. XCOPY, ROBOCOPY even ViceVersa Pro all do a great copy. I guess "MOVE" is not a distinct command when trying to but something on another drive. This win2k server is just getting a seperate larger array and I need to "MOVE" some shares over.
1. I believe it boils down to "COPYING" my share folder and all its subs and files along with permissions & security by one of the previous methods mentioned. On the new drive this will create an exact "COPY" (hopefully) of the original share.
2. I will need to break and delete the original source share.
3. I will then have to create the share over again based on the new drive location.

If my method has any obvious holes .......someone please let me know.

Thanks
G
 
You have it down. I would suggest you take a look at XCACLS as I have specified above. This will let you generate a report of the current permissions and you can create a batch file or vbscript to set up those same permissions on the new location. I think you will find it a lot easier to edit the permissions in a text file and execute them all at once than doing it all manually by hand in the GUI.

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Thanks for the direction.........was losing myself there
Finally used ViceVersa Pro, made an exact copy with all permissions and security....great interface !
Broke the old shares in the old location and re-created them on the new drive.
Very fast & easy.

G
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top