Skip to content
Snippets Groups Projects
Commit c4bde9c7 authored by jurgenhaas's avatar jurgenhaas
Browse files

#24 Add support for borg backup in NG deployments

parent 5248e3ae
No related branches found
No related tags found
No related merge requests found
......@@ -420,6 +420,14 @@ Debug:
name: ${ENVIRONMENT_NAME}
url: ${ENVIRONMENT_URL}
script:
- mkdir -p /data/${CI_COMMIT_REF_NAME}/app
- mkdir -p /data/${CI_COMMIT_REF_NAME}/backup/ssh
- mkdir -p /data/${CI_COMMIT_REF_NAME}/db
- mkdir -p /data/${CI_COMMIT_REF_NAME}/files
- mkdir -p /data/${CI_COMMIT_REF_NAME}/redis
- echo "BORG_PASSPHRASE=${BORG_PASSPHRASE}" >/data/${CI_COMMIT_REF_NAME}/backup/.env
- echo "${BORG_SSH_KEY}" >/data/${CI_COMMIT_REF_NAME}/backup/ssh/id_rsa
#- chmod 0600 /data/${CI_COMMIT_REF_NAME}/backup/ssh/id_rsa
- cd /data/${CI_COMMIT_REF_NAME}/app
- drush -y sset system.maintenance_mode 1
- cd -
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment