backup-manager is not removing the correct files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
backup-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have set:
# Number of days we have to keep an archive (Time To Live)
export BM_ARCHIVE_TTL="2"
export BM_LOGGER_
yet have a weekly anachron job which creates my archives. I'm not sure whether the "2" is actually meant to mean "two days" or "two" backups. But in any case the processing seems wrong:
Anacron is invoking the weekly script on 2013-12-3 and is removing only the md5 file 20131126 yet not the corresponding archive files. After the processing below I still have:
-rw------- 1 root root 71 Dez 3 08:43 schiefer-
-rw-rw---- 1 root root 2391242 Nov 26 10:06 schiefer-
-rw------- 1 root root 2390977 Dez 3 08:43 schiefer-
-rw-rw---- 1 root root 7583581916 Nov 26 11:37 schiefer-
-rw-rw---- 1 root root 4779 Nov 26 10:06 schiefer-
-rw-rw---- 1 root root 1173007204 Nov 26 10:18 schiefer-
3 files from last weeks backup. Because only the md5file was removed yet not the corresponding archives leads to the message: No md5file found: /var/archives/
(There are other disturbing issues but I'll open separate bugs for them.)
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:18 schiefer backup-
Dec 3 08:43:21 schiefer backup-
Dec 3 08:43:21 schiefer backup-
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: backup-manager 0.7.9-3
ProcVersionSign
Uname: Linux 3.2.0-56-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Tue Dec 3 12:56:34 2013
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
MarkForUpload: True
PackageArchitec
ProcEnviron:
LANGUAGE=de_AT:de
TERM=xterm
PATH=(custom, no user)
LANG=de_AT.UTF-8
SHELL=/bin/bash
SourcePackage: backup-manager
UpgradeStatus: No upgrade log present (probably fresh install)
After adding some Debug-Logs to the scripts, it seems this my be a result of a previous abort of a backup run which failed to produce an MD5 file. Will only a maximum of one file per prefix be removed?