Create /srv/gitlab/tmp/backups dir to avoid errors from tar when skipping "db" and "repositories" during backup
What does this MR do?
When running kubectl exec -it gitlab-task-runner-6c8df5d59f-n4stg -- backup-utility --skip repositories --skip db --skip registry --skip external_diffs --skip terraform_state --skip uploads
we get the below error:
juliuskvedaras@Juliuss-MBP:~/helm/CNG$ kubectl exec -it gitlab-task-runner-6c8df5d59f-n4stg -- backup-utility --skip repositories --skip db --skip registry --skip external_diffs --skip terraform_state --skip uploads
Dumping artifacts ...
empty
Dumping lfs ...
[Error] tar (child): /srv/gitlab/tmp/backups/lfs.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: /srv/gitlab/tmp/backups/lfs.tar.gz: Cannot write: Broken pipe
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Restore lfs failed
command terminated with exit code 1
We need to create /srv/gitlab/tmp/backups
to void this error.
closes gitlab-org/charts/gitlab#2233 (closed)
Related issues
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Integration tests added to GitLab QA -
The impact any change in container size has should be evaluated
Edited by Julius Kvedaras