Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Prune the old style backups entirely. The pkgdb.bak.tbz I have is from January and the pkgng.db is from Aug 2014.
Brad Davis committed 11 years ago
commit 6479aea4f349c99e45c27435b4c12803cc730a5d
parent f99a3405e8406668d0536e9a7b2d3d067bdda3a8
1 file changed +6 -0
modified scripts/periodic/411.pkg-backup.in
@@ -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
}