Backups in Yandex Managed Service for GitLab
Managed Service for GitLab supports automatic and manual instance backups. You can restore an instance or create a new one from a backup.
Warning
Along with the database, repositories, and attachments, the backup contains secrets, such as SSH keys and tokens.
To restore an instance from a backup, follow this guide.
Creating a backup
A backup is automatically created once a day. You cannot disable backups.
For more information about creating a backup manually, see Working with backups in Yandex Managed Service for GitLab.
If backup creation fails (the Failed status), set up a dedicated security group and assign it to the GitLab instance.
Once created, a backup is compressed for storage. The exact backup size is not displayed.
Backups are only created on running instances.
Storing a backup
Data backups are stored in object storage and do not take up space in the instance storage.
Backups are retained for seven days by default. The retention period is set when creating the instance and can range from 7 to 60 days. You cannot change the backup retention period after the instance has been created. A stopped instance always contains at least one backup, even after the backup retention period expires.
When you delete an instance, a backup is automatically created and stored for two weeks.
You pay for the size of backups stored in Yandex Object Storage as per the relevant pricing policy.