Is there a way to robocopy using /MIR only those files from source, that are older X days then the files in destination?
Robocopy (/MIR) only those files that are older then X days then those in destination folder
robocopy
Related Topic
- Windows – How to delete files older than 30 days with robocopy
- Powershell – Mirror directory, only purging files in destination directory older than 7 days
- Robocopy for Microsoft Access Files MIR switch
- Azure – rsync / robocopy /MIR to azure
- Windows – robocopy retain files in destination directory
- Robocopy – Overwrite all files unless file in destination is newer
Best Answer
/MINAGE:N
should do the trick:This will of course take into account the difference from the current date and time, and not of the destination file, but if you run this script daily the result should be the same.