Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miroslav Kratochvil
r3-pages
Commits
88ab904b
Commit
88ab904b
authored
Jan 21, 2020
by
Jacek Lebioda
Browse files
fix(ci): tar archives the directory and not the symlink now
parent
b32d6167
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
88ab904b
...
...
@@ -57,5 +57,5 @@ Create the backup:
-
echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
script
:
-
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/r3lab.uni.lu
; 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 "
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment