• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 34
  • Last Modified:

Robocopy to synchronize files and folders between 2 location

Currently, robocopy is used to backup the source to another destination with the following option :
   /NDL /NFL /TEE /S /E /COPYALL /NP /R:0 /W:30

What option should I use if any deleted folders or files on the source should also be synchronize with the destination ?

Thx
0
AXISHK
Asked:
AXISHK
2 Solutions
 
oBdACommented:
In other words: delete files and folders in the backup/target if they were deleted from the source?
Then you need /MIR:
/NDL /NFL /TEE /MIR /COPYALL /NP /R:0 /W:30
The target will then be an exact mirror of the source.
0
 
Bill PrewCommented:
If you want a true exact replica then you can use the /MIR option (mirror).


»bp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now