This is a mirror of the original repo at git.oeru.org
Find a file
2023-09-11 11:11:03 +00:00
conf.d Big update to bring gitlabbackup up-to-date and introduce a configuration directory and fine grained control of how many backups of each time to retain 2023-09-11 11:08:38 +00:00
.gitignore Big update to bring gitlabbackup up-to-date and introduce a configuration directory and fine grained control of how many backups of each time to retain 2023-09-11 11:08:38 +00:00
gitlabbackup oops, and now I include the actual script 2023-09-11 11:11:03 +00:00
gitlabbackup-cron Big update to bring gitlabbackup up-to-date and introduce a configuration directory and fine grained control of how many backups of each time to retain 2023-09-11 11:08:38 +00:00
README.md Big update to bring gitlabbackup up-to-date and introduce a configuration directory and fine grained control of how many backups of each time to retain 2023-09-11 11:08:38 +00:00

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