Solved

Recursive copying of whole folder and subdirectories, without permissions

Posted on 2012-04-13
5
263 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 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…

911 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

19 Experts available now in Live!

Get 1:1 Help Now