Recursive copying of whole folder and subdirectories, without permissions

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!
LVL 1
butterhookAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
AnuroopsunddConnect With a Mentor Commented:
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
 
butterhookAuthor Commented:
n.b. the folders will be assigned suitable permissions when they are on the new server!!
0
 
AnuroopsunddCommented:
you can use robocopy to copy to copy on external drive
0
 
butterhookAuthor Commented:
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
 
butterhookAuthor Commented:
thank you
0
All Courses

From novice to tech pro — start learning today.