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?
co_olAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

co_olAuthor Commented:
I think I worked it out. Using the /B does also delete the files / folders on the destination target
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.