Robocopy copy only changed files to new folder

2

I'd like to create a backup such as the following: C:/backups/20140101/ All files from source folder C:/backups/20140102/ Only files changed since last backup C:/backups/20140103/ Only files changed since last backup

So somewhat like robocopy, but with a different output folder.

At the moment i'm copying everything every time which is rather time inefficient (and space, but that is less of an issue).

Thanks in advance

Garth Oates

Posted 2014-04-30T08:57:31.043

Reputation: 193

Answers

2

Robocopy has an option /maxage and that checks the last modification date on files that you are copying.

For example if you need to copy only files that have changed since the last backup (1 day ago)

robocopy sourcepath destpath /maxage:1

MFT

Posted 2014-04-30T08:57:31.043

Reputation: 542

This works; I neglected to consider that by running a scheduled backup that I could use a defined variable for maxage. – Garth Oates – 2014-05-06T09:34:52.913