[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Recursive copying of whole folder and subdirectories, without permissions

Posted on 2012-04-13
5
Medium Priority
?
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

656 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