Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Robocopy Files to New Domain without Permissions

Posted on 2013-06-14
2
Medium Priority
?
10,076 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
[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
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
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 setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
Suggested Courses

610 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