Solved

copy and move files and folders

Posted on 2012-03-19
13
383 Views
Last Modified: 2012-03-21
Hi Experts,

I have a lot of data on one server.
There are many shares with different permissions and security on each folder.
Now I have to migrate them to another server or storage.
Is there a way to copy the permissions and security too ?
0
Comment
Question by:Eprs_Admin
  • 3
  • 3
  • 3
  • +2
13 Comments
 
LVL 5

Accepted Solution

by:
noufs earned 167 total points
Comment Utility
Hello,
sure, use a robocopy script.
example: Robocopy.exe "d:\Sources" "\\destination\share" /S /R:1 /w:2 /ZB /COPYALL /MIR /SEC /LOG:"c:\robocopy.log" /ETA /TEE

Dont forget to download robocopy.exe
0
 
LVL 2

Expert Comment

by:dphantom9002
Comment Utility
Robocopy is free from Microsoft and works well.  Doubletake is another option from Double-Take Software, Inc.  It is not free, but reasonably priced.  They do have a free trial version.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
Comment Utility
You can use Robocopy or RichCopy to copy the folders and files with permissions to the new location

http://technet.microsoft.com/en-us/library/cc733145(v=ws.10).aspx
0
 

Author Comment

by:Eprs_Admin
Comment Utility
so that I understand correctly, with robocopy I can copy the folders including the security and permissions. right ?
0
 
LVL 2

Expert Comment

by:dphantom9002
Comment Utility
yes you can do that with robocopy.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
Comment Utility
Yes that is correct
0
The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

 
LVL 76

Expert Comment

by:arnold
Comment Utility
If this is a domain environment you can se dfs-r to replicate the data with permissions.
There are vbscripts available online that help transferring shares with their settings from one system to another.
Once you have dfs setup and start using the domain asked share, future file share transitions will be seamless for the users.
0
 
LVL 5

Expert Comment

by:noufs
Comment Utility
I'm making my file server migratino with robocopy since years :) Its really good.
You can in the same script write several command line (like i post you before) if you have a lot of shares.
Once your script is done, schedule it a night (the first full will be long, depends on how much you have to copy). The incremental after is fast.

I like to have a separate log per share (to control at the end if all is ok). (At the end on the command line, juste change robocopy.log to rob-share1.log)
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
Robocopy, xcopy were needed since replication using ntfrs with large files is a ....
Win2k3 r2 and newer includes dfs replication which is better an robust.

Time use the newer tool. You can setup the replication without sharing first.
0
 

Author Comment

by:Eprs_Admin
Comment Utility
ok but where can I download the robocopy version or better the gui version ?
0
 
LVL 59

Assisted Solution

by:Darius Ghassem
Darius Ghassem earned 167 total points
Comment Utility
0
 

Author Comment

by:Eprs_Admin
Comment Utility
Hi I used now your command on my 2008 server.
But what I see now, the data is copied but not the permissions .
The security is also copied but why no permissions ?
Why the copied folders are not shared ?

Robocopy.exe "d:\Sources" "\\destination\share" /S /R:1 /w:2 /ZB /COPYALL /MIR /SEC /LOG:"c:\robocopy.log" /ETA /TEE
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 166 total points
Comment Utility
Sharing permissions are not stored on the file system, they are stored in a different location, the registry where the share is defined. What get copied is the security settings.
That is why I suggested, referenced the several examples that exist online for scripts vbscripts that handle the copying f the share settings.
http://thebackroomtech.com/2007/08/28/howto-migrate-file-shares-permissions-and-user-profiles-paths-in-a-windows-2003-domain/
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now