Include group wikis in GitLab backup
Summary
Our backup functionality includes code and wiki repositories for projects, but is missing other repository types:
- Personal and project snippets -> covered by &4120 (closed)
- Designs -> covered by #233430 (closed)
- Group wikis (to be launched in %13.5)
Group wikis should be included as well when backing up and restoring. Their data in the Postgres DB is already included.
What is the current bug behavior?
Group wikis are missing from backups.
What is the expected correct behavior?
Group wikis should be included in backups.
Possible fixes
We can follow the changes for snippets and designs in the linked issues.
Backlog Refinement Notes
See lib/backup/repositories.rb
for places to add this functionality.
To handle group wikis, we will need to add new methods to dump and restore group repositories.
If we were to do this after ~"group::editor"'s &4120 (closed) then it would be a weight 1 issue, but if we do it before then it's a weight 2 as the Backup::Repositories
class is currently written to only dump and restore project repositories (however Backup::Repositories::BackupRestore
which contains the main backup and restore logic looks reasonably de-coupled already).
Documentation
Verify https://gitlab.com/gitlab-org/gitlab-foss/blob/master/doc/raketasks/backup_restore.md