how many files should /var/adm/backup/rpmdb have in it?
Right now I have 5 files of more than 60000K each. Maybe the better question would be: when do older copies of Packages*.gz serve no purpose? Is there any point to keeping copies that are more than a year old? 6 months? 3 months? More than 1-2 copies regardless of age? Is there something that deletes the oldest after a certain age or number of copies? -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 13/06/2021 03.05, Felix Miata wrote:
Right now I have 5 files of more than 60000K each.
Maybe the better question would be:
when do older copies of Packages*.gz serve no purpose?
Is there any point to keeping copies that are more than a year old? 6 months? 3 months? More than 1-2 copies regardless of age? Is there something that deletes the oldest after a certain age or number of copies?
I have 10 copies. Yes, this was configured somewhere, just this instant I don't remember. sysconfig somewhere, perhaps.
/etc/sysconfig/backup: RPMDB_BACKUP_DIR=/var/adm/backup/rpmdb ## Type: integer ## Default: 5 # # Here you can set the maximum number of backup files for the rpm # database. # MAX_RPMDB_BACKUPS=10 There you have :-) -rw-r--r-- 1 root root 147M Apr 15 00:01 Packages-20210415.gz -rw-r--r-- 1 root root 363K Oct 17 2020 sysconfig-20201017.tar.gz Huh, why that old one, not running? No, it is running, I have -rw-r--r-- 1 root root 360K Apr 20 00:51 sysconfig-20210420.tar.gz Just not daily. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)
Carlos E. R. composed on 2021-06-14 18:18 (UTC+0200):
Felix Miata wrote:
Right now I have 5 files of more than 60000K each.
Maybe the better question would be:
when do older copies of Packages*.gz serve no purpose?
Is there any point to keeping copies that are more than a year old? 6 months? 3 months? More than 1-2 copies regardless of age? Is there something that deletes the oldest after a certain age or number of copies?
I have 10 copies. Yes, this was configured somewhere, just this instant I don't remember. sysconfig somewhere, perhaps.
/etc/sysconfig/backup:
I looked in /etc/sysconfig/, but obviously not very well. When I didn't see any rpm* file, I gave up. :P -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 14/06/2021 21.36, Felix Miata wrote:
Carlos E. R. composed on 2021-06-14 18:18 (UTC+0200):
Felix Miata wrote:
Right now I have 5 files of more than 60000K each.
Maybe the better question would be:
when do older copies of Packages*.gz serve no purpose?
Is there any point to keeping copies that are more than a year old? 6 months? 3 months? More than 1-2 copies regardless of age? Is there something that deletes the oldest after a certain age or number of copies?
I have 10 copies. Yes, this was configured somewhere, just this instant I don't remember. sysconfig somewhere, perhaps.
/etc/sysconfig/backup:
I looked in /etc/sysconfig/, but obviously not very well. When I didn't see any rpm* file, I gave up. :P
I used grep to find it :-P Actually, I used 'mc'. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)
I assume that you are keeping all the files intentionally - otherwise zypper would/should clean them up. So, if you want to manage these manually held rpm files, you could use repomanage from yum-utils package. repomanage allows you to specify how many past rpm file versions you would like to keep. repomanage --help Usage: repomanage: manage a directory of rpm packages. returns lists of newest or oldest packages in a directory for easy piping to xargs or similar programs. repomanage [--old] [--new] path. Options: -h, --help show this help message and exit -o, --old print the older packages -n, --new print the newest packages -s, --space space separated output, not newline -k KEEP, --keep=KEEP newest N packages to keep - defaults to 1 -c, --nocheck do not check package payload signatures/digests Best, Tomas On Sat, 2021-06-12 at 21:05 -0400, Felix Miata wrote:
Right now I have 5 files of more than 60000K each.
Maybe the better question would be:
when do older copies of Packages*.gz serve no purpose?
Is there any point to keeping copies that are more than a year old? 6 months? 3 months? More than 1-2 copies regardless of age? Is there something that deletes the oldest after a certain age or number of copies?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2021-06-14 at 13:41 -0400, TomasK wrote:
I assume that you are keeping all the files intentionally - otherwise zypper would/should clean them up.
So, if you want to manage these manually held rpm files, you could use repomanage from yum-utils package.
repomanage allows you to specify how many past rpm file versions you would like to keep.
repomanage --help Usage: repomanage: manage a directory of rpm packages. returns lists of newest or oldest packages in a directory for easy piping to xargs or similar programs. repomanage [--old] [--new] path.
No, that's a different thing. This is not a directory of rpm packages. It is not a manual directory either, it was an automatic cron script standard on *suse installs: /etc/cron.daily/suse.de-backup-rpmdb Today, it is a systemd.timer. To find it, do: Telcontar:~ # systemctl list-timers --all | grep rpmdb Thu 2021-06-17 01:00:16 CEST 13h left Wed 2021-06-16 01:11:53 CEST 10h ago backup-rpmdb.timer backup-rpmdb.service Telcontar:~ # Provided by aaa_base-extras rpm package. - -- Cheers, Carlos E. R. (from openSUSE 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYMnHexwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVqa0An0K/IUhRR2UNc8oh2G01 oPlLrWreAKCBHPJZvdfl9JaelQzFC9hhAtZ7WA== =9snA -----END PGP SIGNATURE-----
participants (3)
-
Carlos E. R.
-
Felix Miata
-
TomasK