Skip to content

Commit

Permalink
Prune the old style backups entirely. The pkgdb.bak.tbz I have is fro…
Browse files Browse the repository at this point in the history
…m January and the pkgng.db is from Aug 2014.
  • Loading branch information
brd committed May 14, 2015
1 parent f99a340 commit 6479aea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/periodic/411.pkg-backup.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ backup_pkg() {
rc=3
fi

# Prune very old backups
local OLDBACKUPS="pkgng.db pkgdb.bak.tbz pkgdb.bak.tbz.2"
for file in ${OLDBACKUPS}; do
[ -f /var/backups/${file} ] && rm /var/backups/${file}
done

return $rc
}

Expand Down

0 comments on commit 6479aea

Please sign in to comment.