add gitlab backup script
This commit is contained in:
parent
13ce33c8a0
commit
c161459996
9
bin/gitlab-backup.sh
Executable file
9
bin/gitlab-backup.sh
Executable file
@ -0,0 +1,9 @@
|
||||
# needs to run as root
|
||||
|
||||
# Create a time-stamped .tar file in the current directory.
|
||||
# The .tar file will be readable only to root.
|
||||
cd /var/opt/gitlab/backups/
|
||||
sh -c 'umask 0077; tar -cf $(date "+etc-gitlab-%s.tar") -C / etc/gitlab'
|
||||
|
||||
# run GitLab system backup, will upload to Google Cloud Storage bucket
|
||||
gitlab-rake gitlab:backup:create
|
Loading…
Reference in New Issue
Block a user