Solved

copy and move files and folders

Posted on 2012-03-19
13
388 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
ID: 37737731
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
ID: 37737732
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
ID: 37737734
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
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 

Author Comment

by:Eprs_Admin
ID: 37737749
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
ID: 37737752
yes you can do that with robocopy.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 37737759
Yes that is correct
0
 
LVL 78

Expert Comment

by:arnold
ID: 37737911
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
ID: 37737986
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 78

Expert Comment

by:arnold
ID: 37738497
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
ID: 37742722
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
ID: 37742826
0
 

Author Comment

by:Eprs_Admin
ID: 37746025
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 78

Assisted Solution

by:arnold
arnold earned 166 total points
ID: 37746962
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Server 2008 R2 - Clock Time out of synch 14 55
GPO on certain users 17 33
robocopy question 3 23
office 2010 not starting even in safe mode 7 65
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

685 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