Commit 13c5d523 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

chore(merge): Merge branch '16-correct-backup-2' into 'master'

fix(ci): tar archives the directory and not the symlink now

Closes #16

See merge request core-services/r3lab/r3-pages!17
parents b32d6167 88ab904b
Pipeline #19845 passed with stages
in 1 minute and 44 seconds
......@@ -57,5 +57,5 @@ Create the backup:
- echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web ~/backups/; cd; tar -zcvf ~/backups/backup_$(date +'%Y_%m_%d').tar.gz web"
- ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web ~/backups/; cd /var/www/sites/; tar -zcvf ~/backups/backup_$(date +'%Y_%m_%d').tar.gz *"
- ssh -p $SSHPORT $SSHCONNECT "cd ~/backups/; ls -tr | head -n -3 | xargs --no-run-if-empty rm "
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