Solved

Robocopy Files to New Domain without Permissions

Posted on 2013-06-14
2
6,391 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 83

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Synchronize a new Active Directory domain with an existing Office 365 tenant
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
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…

706 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