Skip to content

Delete Praefect DB upon running restore rake task

Proposal

Currently the backup task only clears production DB when restoring. The Praefect database gets over written only for the repositories that get restore. See slack discussion

When there are more repositories on the DB than being restore, this can cause issues when creating new projects. See zd-294970. When a new project is created in this case, we get the error message: There is already a repository with that name on disk | uncaught throw :abort.

The proposal is to wipe Praefect DB and storage prior to restoring repositories.

Edited by Priyan Sureshbabu
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information