0

I am trying to create a robocopy program which runs every Sunday and pulls in the last 7 days of folders (and its sub-folders). This is because the folder stores years worth of data so I only want to pull in the new folders. Is there a way to do this? I've been playing around with the max/min age but it's pulling in all folders and isn't limiting it to just the last 7 days.

What I have tried:

robocopy \\server\source \\server\destination /MIR /MAXAGE:7

here you can see it's pulling in files older than maxage 7

I want to run this every Sunday and it be smart enough to pull in the last 7 days.

ZygD
  • 2,577

0 Answers0