Commit 6187221a authored by David Nowell's avatar David Nowell
Browse files

Updating the restore script to restore gitlab-secrets.json

parent fe821e0a
......@@ -13,6 +13,13 @@ KEYFILE=`aws s3 ls {{ s3_bucket }} | grep gitback-sshkeys | tail -1 | awk '{prin
aws s3 cp --quiet s3://{{ s3_bucket }}/${KEYFILE} /etc/ssh/
cd /etc/ssh; tar -xf ${KEYFILE}
CONFIGFILE=`aws s3 ls {{ s3_bucket }} | grep gitback-config | tail -1 | awk '{print $4}'`
aws s3 cp --quiet s3://{{ s3_bucket }}/${CONFIGFILE} /etc/ssh/
cd /etc/gitlab; tar -xf ${CONFIGFILE} ./gitlab-secrets.json
BAKNAME=`echo ${BAKFILE/_gitlab_backup.tar/}`
gitlab-rake gitlab:backup:restore BACKUP=${BAKNAME} force=yes
......
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