The cron script cron.daily makes daily copies of the database (packed with gzip) and stores them in /var/adm/backup/rpmdb. The number of copies is controlled by the variable MAX_RPMDB_BACKUPS (default: 5) in /etc/sysconfig/backup. The size of a single backup is approximately 1 MB for 1 GB in /usr.
1-Why 5? 2-What do I loose if if I keep 1 or 2 instead of 5? 3-What do they offer that rpm --rebuilddb doesn't? 4-Why isn't rebuilddb in the rpm manual? 5-Why 30,000k per backup file? (My /usr is typically <3G total, including /usr/local/ which is on a separate filesystem.)
From TW20181124: /var/adm/backup/rpmdb# ls -Ggh total 134M -rw-r--r-- 1 27M Jul 29 06:24 Packages-20180729.gz -rw-r--r-- 1 27M Aug 2 03:50 Packages-20180802.gz -rw-r--r-- 1 27M Sep 30 13:48 Packages-20180930.gz -rw-r--r-- 1 27M Dec 1 20:38 Packages-20181201.gz -rw-r--r-- 1 27M Dec 2 00:04 Packages-20181202.gz -rw-r--r-- 1 36 Dec 2 00:04 rpmdb_recent_md5 First: no need for cron, these days a systemd service takes care of backing up
Op zondag 27 januari 2019 11:38:35 CET schreef Felix Miata: the rpm database. -- Gertjan Lettink a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org