Robocopy and reset archive attribute...incremental backup


  • For several days I try to find cmd solution to make incremental backup. Want to force robocopy/xcopy to reset archive attribute on source files when doing mirroring but with no success. I want to make each day mirror and each hour incremental backup in separate folders which work ok.

    I want to daily create mirror c:\source folder to d:\backup\source folder. But need option to reset archive attribute "on the fly". /mir switch wont to this and /m switch do this but cant use this for mirroring purpose because I dont want to copy all unchanged files all over again. attrib -a c:\source\*.* /s is not solution because I have allot files.

    Maybe is solution to use last modified timestamp instead archive attribute but how to do this?

    Sunday, December 08, 2013 11:33 AM


  • Hi,

    Have you tried /MAXAGE switch, where you can mention date from you need to perform incremental back or full backup [ YYYYMMDD]

    Robocopy c:\soure e:\backup\source *.* /MAXAGE:2013120 

    Add the /L command to this to see what it will do without it actually doing it first just to make sure.

    Sunday, December 08, 2013 12:37 PM