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

Robocopy Syntax

I want to use Robocopy to copy backup data (Shadow Protect) to an external USB drive so the client can take it home every night. I would like to run robocopy every night but would like to only copy the new incrementals (or changes to the backup folder) The backup software will only keep 4 weeks of backups and delete the older backups. What would be the best command for that. I have tried using:
robocopy "F:\Shadow Protect" "G:\Shadow Protct" /MIR /SEC /COPYALL /V /NP /B /R:10 /W:30

Is there a syntax I can use that will delete backup files from the (target) USB drive that are older than say 4 weeks?
0
co_ol
Asked:
co_ol
1 Solution
 
co_olAuthor Commented:
I think I worked it out. Using the /B does also delete the files / folders on the destination target
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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