RE: Moving shares to another server

From: Joe Admin In The Middle East (anonymous_at_discussions.microsoft.com)
Date: 10/27/03


Date: Mon, 27 Oct 2003 13:06:05 -0800

One of the best Resource Kit Tools:

robocopy

This will allow you to copy the files while they are still being shared and keep the permissions and everything.
It may take several times to get all or the majority of the files (If thy are open, etc.) but when you have 90%, you
turn off the share on the other computer, run the copy again (now the files that failed should succeed because they are no longer shared) and then voila---a new location with all of your files. Keep the old location for a few weeks (just in case) and then archive to tape and delete.....

HINT: Map a drive to the old location from the new server---much faster
Here is the syntax for copying all of the files and directories with security:

robocopy [source path] [destination path] /e /sec /w:0 /r:0
EXAMPLE: robocopy q:\usershare d:\usershare /e /sec /w:0 /r:0

This will copy q source files and all files and directories (/e) and include all security permissions (/sec) wait for no time (/w:0) and retry 0 times (/r:0)

It will skip files that are open, etc, so run it several times until you get most or all of the goods. It will skip files that are the same and re-write files that have changed since the last time they were copied. When you are ready, unshare the sorce folder then run the command againwhich should finalize the copy and now you can share it again on the new server. Have fun.

Joe



Relevant Pages

  • Robocopy ignores NTFS security
    ... A colleague of mine ran a robocopy copy job from his PC to a network share ... permissions on the ACL. ... NTFS Security page and re-ran the command. ...
    (microsoft.public.win2000.general)
  • RE: FSMT - Server Shares Only?
    ... xcopy can also copy the folder NTFS ... permissions, robocopy is the enhanced version of xcopy. ...
    (microsoft.public.windows.server.migration)
  • Re: publishing vs 2005 web site takes 20 minutes
    ... Now I use webdrive which mounts the server as ... In the past I've always used scripts to do this, based on Robocopy ... astonishingly powerful and flexible remote file synchronisation tool, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: script to duplicate the content management system
    ... kit in the form of Robocopy ... > permissions associated with that folder. ... >>> I want a script which duplicates the content management system with ...
    (microsoft.public.scripting.vbscript)
  • Re: Moving Shared Documents
    ... How toHow to use Robocopy to set permission without copying any files. ... The Robocopy utility included in the Windows NT 4.0 Resource Kit and the Windows ... Is there an easy way of recreating the shares and permissions. ...
    (microsoft.public.windows.server.general)