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

Robcopy copy parameters

With the following option in robocopy, does it mean any deleted folders/files on the sources will not be deleted on destination ? Should I add additional parameters /MIR and /PURGE  ?

Is it possible to log any errors during the robcopy rather than all details ?

/copy:DATSO /E /Z /NP
0
AXISHK
Asked:
AXISHK
2 Solutions
 
NVITCommented:
> With the following option in robocopy, does it mean any deleted folders/files on the sources will not be deleted on destination ?

Yes. Not deleted

> Should I add additional parameters /MIR and /PURGE

If you want to match the source, yes. Existing files on the target that aren't on the source are deleted.

For error codes, See https://ss64.com/nt/robocopy-exit.html
0
 
Bill PrewCommented:
You can also use some of the /n options to reduce the information that ROBOCOPY logs.



»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: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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