minfileage and maxfileage

Jun 7, 2012 at 6:29 PM

Hi, thank you for this script. I need to backup only files older than 342 days. However, during execution, it seems to ignore minfileage. Any suggestions?

Jun 9, 2012 at 5:38 PM

Hi kupao,

there a few things which are involved in the understanding of min/maxfileage selector switch.

First one : if backup type is incr or diff then the file MUST have the archive attribute set to be selected. This is a mandatory condition. If the file does NOT have the archive attribute set, then it's simply skipped regardless any other criteria. Therefore if you want min/maxfileage to be relevant in any case then I suggest you to run the script in full or copy backup type.

Second one : min/maxfileage are calculated over LastWriteTime of files. They are not calculated over CreationTime

Let me know if it does make sense to you.