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
Solved

syntax for how to use Robocopy to backup changed files with /m?

Posted on 2011-09-11
3
308 Views
Last Modified: 2012-05-12
I want to copy 400GB from server A to server B.  I also need the syntax to copy changed files only? Do I run the same robocopy command twice (once to make the initial copy and again to copy changed files)?
0
Comment
Question by:victor2008
  • 2
3 Comments
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36519776
do your initial robocopy.
Then use robocopy /xo to exclude older
0
 

Author Comment

by:victor2008
ID: 36520011
Thanks 5G.  Can you give me an example?  Or, let me know if the below is accurate?

Would I do something like:

robocopy "source" "destination" /S /E /V /COPY:DATSO/LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL

Then (when I'm ready to do the final copy):

robocopy "source" "destination" /S /E /V /XO /COPY:DATSO/LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL
0
 
LVL 13

Accepted Solution

by:
5g6tdcv4 earned 500 total points
ID: 36520106
robocopy "source" "destination"  /E /V /COPY:DATSO /LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL
for initial copy

robocopy "source" "destination"  /E /V /XO /COPY:DATSO /LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL


you could also just run:
robocopy "source" "destination"  /E /V /XO /COPY:DATSO /LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL


it should copy files that do not exist in destination dir...stay away from /MIR
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sleep laptop 20 71
Problem to file 13 55
Windows Updates Batch Files (now with executables!) 32 59
Selecting Right Partition 6 69
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

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