Verified Commit 636613f4 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Try to make GitLab backups more reliable

Sometimes we'd get failures if files changed while backing them up.
See https://docs.gitlab.com/ee/raketasks/backup_restore.html#backup-strategy-option
for documentation on the fix.
This fixes #200.
parent c17827e9
Pipeline #2480 passed with stage
in 45 seconds
......@@ -12,4 +12,4 @@ echo "emptying backup directory ${backupdir}"
# Verify that the gitlab_backupdir in ansible was defined, otherwise we will rm /* and remove the previous backup
rm -r "${backupdir:?backup dir unset}/"*
docker exec gitlab gitlab-backup create SKIP=tar
docker exec gitlab gitlab-backup create STRATEGY=copy SKIP=tar
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment