Re: copy a large number of files / preserve the permissions

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 05/31/05


Date: Tue, 31 May 2005 16:35:36 +0200

NewGuy wrote:

> Is there a way to copy a large number of files from one system to another
> and preserve the permissions for those files?
>
> I am upgrading a server that stores user's home dir's and just public
> folders etc.
>
> I would like to move the data to the new server over night, but would most
> like that all the permissions stay the same on the files in the folders on
> that server.
Hi,

I suggest you look into Microsoft's Robocopy.exe.

Robocopy.exe is available here:

Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

(The kit will install on WinXP or later and you can copy only
needed files to other computers)

See rktools.chm and robocopy.doc for documentation for Robocopy.exe.

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Relevant Pages

  • Re: For the experts only!
    ... Move join.txt to the _private folder (which by default has write permissions) and change your form properties to ... The server host says the problem is ... | all .htaccess files in all folders and reload the site up ... |>| I have reset the permissions on the admin program of FP ...
    (microsoft.public.frontpage.client)
  • Re: Trouble configuring Outlook
    ... If you're using Exchange, permissions are granted at the server level. ... > individual folders and subfolders; ...
    (microsoft.public.outlook.installation)
  • Re: write with cURL
    ... execute permissions. ... of potential security risks from other users on the same server. ... I made this suggestion because their web host appears to run Apache ... risk to allow Apache's group write access, since all PHP scripts ran ...
    (alt.php)
  • Access denied
    ... I've got a client with a server running SBS3K on it with 5 clients running ... permissions set to a folders containing those files and all was good. ...
    (microsoft.public.windows.server.sbs)
  • RE: Windows 2003 Server - Everyone Group
    ... this folder only accessable by the users in the "special" group. ... Configure User and Group Access on an Intranet in Windows Server ... NTFS files system permissions control ... group that you want to set permissions for, click Check Names to verify the ...
    (microsoft.public.win2000.networking)