[Rpm-maint] [rpm-software-management/rpm] Add a --salvagedb option to the rpmdb tool (#1042)

Michael Schroeder notifications at github.com
Wed Feb 12 09:14:01 UTC 2020

No, there's a (very) small chance that it picks up entries that have been deleted. It's like the .recover command of the sqlite cli:

Like the ".dump" command, ".recover" attempts to convert the entire contents of a database file to text. The difference is that instead of reading data using the normal SQL database interface, ".recover" attempts to reassemble the database based on data extracted directly from as many database pages as possible. If the database is corrupt, ".recover" is usually able to recover data from all uncorrupted parts of the database, whereas ".dump" stops when the first sign of corruption is encountered.

BerkeleyDB has a db_recover utility for this. My initial plan was to also create a ndb_recover tool, but then I realized it was way easier to integrate it into the rpmdb command.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200212/2bf6e393/attachment.html>

More information about the Rpm-maint mailing list