因此,我正在寻找一个好的批处理文件,使用robocopy功能将我的Win7客户机备份和恢复文件夹复制到网络连接存储中。每天都会在备份集父文件夹中创建一个新文件夹,因此从理论上讲,我希望robocopy所做的一切就是每晚复制新文件夹,而不是每晚复制整个目录。
到目前为止-我使用的是robocopy /MIR,但它仍然会将每次复制的所有内容都复制为较旧的版本,即使文件夹没有更改。
有什么想法可以做到吗?
干杯
发布于 2012-12-19 04:34:18
使用/XO选项。
/XO : eXclude Older - if the destination file exists and is the same date
or newer than the source - don’t bother to overwrite it.另一种选择是使用/MaxAge:1选项。
/MAXAGE:n : MAXimum file AGE - exclude files older than n days/date.RoboCopy /?
https://stackoverflow.com/questions/13938940
复制相似问题