yum database backup

Paul Howarth paul at city-fan.org
Fri Jul 28 18:08:18 UTC 2006


Arun Biyani wrote:
> I've had yum database corruption couple of times recently. What I'd like 
> to do now, is to save
> the yum database nightly via a cron job i.e something like "tar cvf 
> /home/bak/yum.tar /etc/yum"
> run nightly. I am not sure which directories to backup so that yum & rpm 
> databases
> can be fully restored.

Yum doesn't have a database, at least not one that it won't recreate for 
itself if necessary. You could backup the config files though, /etc/yum.*

The rpm database is in /var/lib/rpm.

Paul.




More information about the fedora-list mailing list