chaotic-aur / toolbox

Unified kit with all the scripts required for maintaining the repository 🧰
https://aur.chaotic.cx
GNU Affero General Public License v3.0
81 stars 11 forks source link

Add db-rebuild subcommand to rebuild the database from scratch #49

Closed JustTNE closed 2 years ago

JustTNE commented 2 years ago

Completely rebuild the database and files database from scratch, keeping the original DB around until the build is finished. This allows us to easily fix broken db entries without causing any downtime to chaotic.

This re-uses logic already used in db-bump.