Automatic backups
Hi devs!
Thank you for this great product!
Description
As we all know, backups are very important for every data based application. Maybe I missing some thing, but backup and restore procedures are not intuitive and not automated.
Proposal
What this proposal is about?
There are already some settings for backups, but well, there is no magic to activate backups on periodical basis, like just:
gitlab_rails['backup_cron'] = 'H 2 * * * *'
and then gitlab push backups to gitlab_rails['backup_path']
. See also notes on encryption below.
Links / references
After researching in issues (yes, I read at least headlines of all this issues:D), I found some great feature requests, which are related to mine.
gitlab-ce#441: Backup schedule automation through gitlab.rb
May be my feature request duplicates this one. But I didn't understand the reason why this issue was closed.
gitlab-ce#3718: backup CRON not working in Dockerfile gitlab-ce
gitlab-ce#27470: Make backup task a Sidekiq cron
It feels like not right way to setup automatic backups. Backup should be easy, very easy.
gitlab-ce#32208: Encrypt backup with PGP/GPG public key
Do second task to store secrets isn't right way and this one is about perfect backup encryption solution. Furthermore, I think, in most cases it's OK to store secrets in backups, if underlying store is secure enough.
gitlab-ce#3883: Making backups more visible
It would be nice to have a GUI to manage Backups (after initial setup in config) and restores.
EDIT: I discovered other feature requests:
- omnibus-gitlab#1552 (closed) (secrets)
- omnibus-gitlab#1960 (closed) (cron)
Documentation blurb
Overview
What is it? Why should someone use this feature? What is the underlying (business) problem? How do you use this feature?
Use cases
Who is this for? Provide one or more use cases.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml