Backups: new upstream way of doing
Starting with GitLab 14.0, a new repository backups method appears, that uses a process called
gitaly-backup, directly provided by Gitaly. One can imagine how much more efficient it is compared to painfully lifting all Git bundles through gRPC calls.
Of course backups done this way don't have any Mercurial content and are hence useless for Heptapod.
Like all new features, it is controlled by a feature flag that
is not activated by default, yet is automatically active in the GitLab Development ToolKit (GDK) is activated by default in GitLab 14.2.
For the Heptapod release relying on 14.2, we can shamelessly ignore this feature flag and always use the older method, it passes our functional tests.
But Heptapod backups needs to be adapted for when the new method becomes the norm – and perhaps the only choice. We probably will need to introduce a
hgitaly-backup in one way or another, and that will be more efficient for HGitaly, too.
- hg hgitaly-backup
- usage in the general Rake backup tasks