Solved

Recursive copying of whole folder and subdirectories, without permissions

Posted on 2012-04-13
5
262 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
Comment Utility
n.b. the folders will be assigned suitable permissions when they are on the new server!!
0
 
LVL 17

Expert Comment

by:Anuroopsundd
Comment Utility
you can use robocopy to copy to copy on external drive
0
 
LVL 1

Author Comment

by:butterhook
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
thank you
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

743 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

8 Experts available now in Live!

Get 1:1 Help Now