purge backup doesn't work

Asked by Alfredo on 2012-12-18

Hi,
sbackup doesn't purge old backups. I make a full backup every 7 days (into a removable drive mounted as /media/backp) and I want to purge backup older than 15 days but they are still there.
Log:
2012-12-18 12:12:30,160 - INFO: Simple purge - remove freestanding snapshots older than 15 days.
2012-12-18 12:12:30,173 - INFO: Invalid snapshot `.Trash-1000` found: Name of snapshot not valid.
2012-12-18 12:12:30,174 - INFO: Invalid snapshot `sbackup.log.2.gz` found: Name of snapshot not valid.
2012-12-18 12:12:30,175 - INFO: Invalid snapshot `sbackup.log` found: Name of snapshot not valid.
2012-12-18 12:12:30,175 - INFO: Invalid snapshot `sbackup.log.1.gz` found: Name of snapshot not valid.
2012-12-18 12:12:30,177 - INFO: Invalid snapshot `.Trash-0` found: Name of snapshot not valid.
2012-12-18 12:12:30,180 - INFO: Invalid snapshot `sbackup.log.6.gz` found: Name of snapshot not valid.
2012-12-18 12:12:30,181 - INFO: Invalid snapshot `sbackup.2012-12-18_11.00.05.767677.log` found: Name of snapshot not valid.
2012-12-18 12:12:30,182 - INFO: Invalid snapshot `sbackup.log.5.gz` found: Name of snapshot not valid.
2012-12-18 12:12:30,183 - INFO: Invalid snapshot `sbackup.log.4.gz` found: Name of snapshot not valid.
2012-12-18 12:12:30,184 - INFO: Invalid snapshot `sbackup.log.3.gz` found: Name of snapshot not valid.
2012-12-18 12:12:30,194 - INFO: Backup process finished.

Content of /media/backup:
drwxrwxrwx 1 root root 16384 2012-12-18 13:45 .
drwxr-xr-x 10 root root 4096 2012-12-17 19:29 ..
drwxrwxrwx 1 root root 4096 2012-11-28 04:39 2012-11-28_03.05.12.024027.servlinux.ful
drwxrwxrwx 1 root root 4096 2012-11-28 11:06 2012-11-28_11.00.03.514581.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-11-29 11:27 2012-11-29_11.00.04.553779.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-11-30 11:30 2012-11-30_11.00.04.323977.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-01 11:24 2012-12-01_11.00.07.017174.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-02 11:02 2012-12-02_11.00.06.901822.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-03 11:29 2012-12-03_11.00.06.358955.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-04 11:49 2012-12-04_11.00.06.754307.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-05 12:51 2012-12-05_11.00.07.587750.servlinux.ful
drwxrwxrwx 1 root root 4096 2012-12-06 11:30 2012-12-06_11.00.08.207894.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-07 11:30 2012-12-07_11.00.07.702954.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-08 11:24 2012-12-08_11.00.07.381819.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-09 11:02 2012-12-09_11.00.07.260589.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-11 11:33 2012-12-11_11.00.07.354147.servlinux.inc
drwxrwxrwx 1 root root 4096 2012-12-18 12:12 2012-12-18_11.00.06.042644.servlinux.ful
-rwxrwxrwx 1 root root 0 2012-12-18 13:45 file.txt
-rwxrwxrwx 1 root root 3818 2012-12-18 13:43 sbackup.log
-rwxrwxrwx 1 root root 295 2012-12-18 13:44 sbackup.log.1.gz
-rwxrwxrwx 1 root root 2394 2012-12-18 13:43 sbackup.log.2.gz
-rwxrwxrwx 1 root root 619 2012-12-18 13:43 sbackup.log.3.gz
-rwxrwxrwx 1 root root 268 2012-12-18 13:31 sbackup.log.4.gz
-rwxrwxrwx 1 root root 1572 2012-12-18 13:28 sbackup.log.5.gz
-rwxrwxrwx 1 root root 620 2012-12-18 12:12 sbackup.log.6.gz
drwxrwxrwx 1 root root 0 2012-11-27 22:29 .Trash-0
drwxrwxrwx 1 root root 0 2012-11-27 22:39 .Trash-1000

Thanks!
Alfredo

Question information

Language:
English Edit question
Status:
Solved
For:
sbackup Edit question
Assignee:
No assignee Edit question
Solved by:
Alfredo
Solved:
2012-12-20
Last query:
2012-12-20
Last reply:
Alfredo (alfredo-p) said : #1

I add the debug log:
2012-12-19 11:11:39,737 - DEBUG in SnapshotManager._do_cutoff_purge(1115): Checking '2012-11-28_03.05.12.024027.servlinux.ful' for childs.
2012-12-19 11:11:39,740 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `.Trash-1000` found: Name of snapshot not valid.
2012-12-19 11:11:39,742 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `.Trash-0` found: Name of snapshot not valid.
2012-12-19 11:11:39,747 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `sbackup.log.6.gz` found: Name of snapshot not valid.
2012-12-19 11:11:39,748 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `sbackup.log.5.gz` found: Name of snapshot not valid.
2012-12-19 11:11:39,749 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `sbackup.log.4.gz` found: Name of snapshot not valid.
2012-12-19 11:11:39,750 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `sbackup.log.3.gz` found: Name of snapshot not valid.
2012-12-19 11:11:39,752 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `sbackup.log.2.gz` found: Name of snapshot not valid.
2012-12-19 11:11:39,752 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `sbackup.log` found: Name of snapshot not valid.
2012-12-19 11:11:39,753 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `sbackup.log.1.gz` found: Name of snapshot not valid.
2012-12-19 11:11:39,754 - INFO in SnapshotManager._read_snps_from_disk_allformats(214): Invalid snapshot `sbackup.2012-12-19_11.00.08.441833.log` found: Name of snapshot not valid.
2012-12-19 11:11:39,762 - INFO in profile_handler.process(218): Backup process finished.

Alfredo (alfredo-p) said : #2

Problem solved! From today the old backup are purged! I don't know why... probably a strange way to count 15 days?! Thanks anyway!

Anton (feenstra) said : #3

Perhaps unexpected, but intended.

The thing is, an incremental backup by itself is nothing; it depends on the previous incrementals and the last full backup. So as long as there are incremental backups less than 15 days old, the most recent full backup before that one, and all the intermediate incremental backups, are also kept.