[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Recursive copying of whole folder and subdirectories, without permissions

Posted on 2012-04-13
5
Medium Priority
?
279 Views
Last Modified: 2012-05-12
Hi there

We are migrating from one infrastructure to another, e.g. OLD DOMAIN 1 -> NEW DOMAIN 2

Our entire set of users are being re-created.

We need to copy our entire file system from our current primary server to our new server, but as the user objects are all new, wish to do so without any permission settings.

In addition, as there are many recursive paths, standard batch files I believe aren't able to deal with very long pathnames.

Is there a tool/method I can use to copy all of these files to an external drive in their entirety, regardless of filename length, and without any permissions on the target drive?

Thanks in advance!
0
Comment
Question by:butterhook
  • 3
  • 2
5 Comments
 
LVL 1

Author Comment

by:butterhook
ID: 37843098
n.b. the folders will be assigned suitable permissions when they are on the new server!!
0
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37843108
you can use robocopy to copy to copy on external drive
0
 
LVL 1

Author Comment

by:butterhook
ID: 37843149
Thanks for the reply! Do you have example of using Robocopy to do this without copying permissions and ensuring copy of the entire set of files?
0
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 2000 total points
ID: 37843217
in below link you can find all commands.
http://ss64.com/nt/robocopy.html
main one for you seems like as below...
ROBOCOPY Source_folder Destination_folder [files_to_copy] [options]

Don't specify the S/O,U,A flags to copy the security identifiers
/COPY:copyflag[s] : What to COPY (default is /COPY:DAT)
                      (copyflags : D=Data, A=Attributes, T=Timestamps
                       S=Security=NTFS ACLs, O=Owner info, U=aUditing info).

 /E : Copy Subfolders, including Empty Subfolders.
0
 
LVL 1

Author Closing Comment

by:butterhook
ID: 37960850
thank you
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

825 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