Solved

Robocopy Files to New Domain without Permissions

Posted on 2013-06-14
2
7,738 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 84

Accepted Solution

by:
oBdA earned 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

In-place Upgrading Dirsync to Azure AD Connect
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

860 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