I see MatatTHC's change made it into 0.10.5. I have the same problem with it like Christopher has: The incremental backups from last week also get purged. The following change makes sbackup to purge logarithmically as expected:
In upgrade_backups.py, line 189 ff.:
seenfull = 0
for e in listing:
e.endswith( ".ful" ):
seenfull += 1
elif seenfull > 1 and e.endswith( ".inc" ):
topurge.append( e )
The seenfull counter should be incremented on every '.ful'. After seeing the _second_ full backup in the directory listing, following .inc's are to purge (two weeks old). Incrementals from last week are held. I patched the version 0.10.4 that way and all worked as expected.
I see MatatTHC's change made it into 0.10.5. I have the same problem with it like Christopher has: The incremental backups from last week also get purged. The following change makes sbackup to purge logarithmically as expected:
In upgrade_backups.py, line 189 ff.:
seenfull = 0
for e in listing:
e.endswith( ".ful" ):
seenfull += 1
elif seenfull > 1 and e.endswith( ".inc" ):
topurge.append( e )
The seenfull counter should be incremented on every '.ful'. After seeing the _second_ full backup in the directory listing, following .inc's are to purge (two weeks old). Incrementals from last week are held. I patched the version 0.10.4 that way and all worked as expected.