Closed mpaik closed 5 years ago
Yeah, you're right. I am working on a solution. I will rework and re-think the whole process.
Until then i would reccomend you to use the native gitlab backup routine. The Backups are stored in /volume1/docker/gitlab/backups
Backup:
sudo /usr/local/bin/docker exec -it synology_gitlab bash -c "sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production CRON=1"
Restore:
/usr/local/bin/docker exec -it synology_gitlab bash -c "sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production BACKUP=<timestamp_of_backup>"
Hope this helps.
Kind Regards
Hello mpaik,
thanks to your issue i have removed the custom backup solution and recommend from now to use the default gitlab bacup/restore functions here. Thank you for the bug report.
Kind Regards.
The script
src/scripts/backup
doesn't check whether the database dump from pgsql completes successfully, as I now know to my cost. Looking over the resulting database.sql (after trying, and failing, to upgrade), I find this:This file is, of course, tgz'ed up, which means that there's no way to check whether it completed successfully without digging into the archive, and nothing is reported on the CLI:
Not great.