?
Solved

Robocopy Files to New Domain without Permissions

Posted on 2013-06-14
2
Medium Priority
?
10,652 Views
Last Modified: 2013-07-12
I need to copy files to a new server in a new domain - there is not and will not be a trust established between domains.  We will be creating new user accounts and new NTFS permissions in the new domain.  I just want to copy files on the 2008 file server from the old domain, to the 2008 file server, currently on a work group, to a new domain. I want to lose permissions also.  

In addition, how can I exclude a particular file from being copied over, in this case *.pst files.  I'm thinking the below command should work, thoughts?

robocopy "\\SOURCESERVER\f$\Shares\Shared" "\\DESTINATIONSERVER\f$\Shares\Shared" /MIR /r:1 /w:1 /DAT /xf *.pst  /log:c:\shared_script.txt
0
Comment
Question by:fireguy1125
2 Comments
 
LVL 1

Author Comment

by:fireguy1125
ID: 39248571
robocopy "\\SOURCESERVER\f$\Shares\Shared" "\\DESTINATIONSERVER\f$\Shares\Shared" /MIR /r:1 /w:1 /copy:DAT /xf *.pst  /log:c:\shared_script.txt

seems to have worked for me - my other question - I'm doing the initial copy, but what syntax do I enter to just copy changes only so when I re-run it again it doesn't copy all the files again?
0
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 total points
ID: 39248576
Change /DAT to /copy:DAT (or leave it out; /copy:DAT is the default if not specified), and add /np (to prevent control characters from cluttering the log file) and maybe /TEE (to show progress on the console while logging):
robocopy.exe "\\SOURCESERVER\f$\Shares\Shared" "\\DESTINATIONSERVER\f$\Shares\Shared" /MIR /r:1 /w:1 /copy:DAT /xf *.pst /np /tee /log:c:\shared_script.txt

Open in new window

Note that robocopy has an /L switch, which tells it to just pretend to copy.
Note, too, that robocopy will by default only copy files that aren't in the target folder yet, so you can just run the same command several times to update the target.
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Suggested Courses

840 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