This is a mirror of the original repo at git.oeru.org
conf.d | ||
.gitignore | ||
gitlabbackup | ||
gitlabbackup-cron | ||
README.md |
Gitlab DB Backup
Backing up a Gitlab database, implemented as a Docker container with PostgreSQL running in it.
Set up a configuration file in conf.d by coping the conf.d/site.conf-sample to conf.d/site.conf and adjusting the values between [] within.
cp conf.d/site.conf-sample conf.d/site.conf
To have the command run automatically hourly, daily, weekly, monthly, and yearly, Copy gitlabbackup-cron to /etc/cron.d
sudo cp gitlabbackup-cron /etc/cron.d
Run the command (for testing) via (use the --verbose flag for more information as it runs):
sudo ./gitlabbackup --hourly --verbose