Skip to content

Commit

Permalink
Make backups before synching
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Thoden committed Mar 9, 2020
1 parent 156066c commit cc29dbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Empty file modified pulldjango.sh
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions updatestatic.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/zsh

cp -rv /var/www/eoa /home/kthoden/backups/eoa_$(date -I)
sudo rsync -Pazy /home/kthoden/static/eoa/eoa2-production.mpiwg-berlin.mpg.de:9005/ /var/www/eoa/html
cp -rv /var/www/eos /home/kthoden/backups/eos_$(date -I)
sudo rsync -Pazy --exclude index-bak.html --exclude *.pdf.bak /home/kthoden/static/eos/eoa2-production.mpiwg-berlin.mpg.de:9010/ /var/www/eos/html
cp -rv /var/www/mprl /home/kthoden/backups/mprl_$(date -I)
sudo rsync -Pazy --exclude index-bak.html --exclude *.pdf.bak /home/kthoden/static/mprl/eoa2-production.mpiwg-berlin.mpg.de:9015/ /var/www/mprl/html

echo Finito

0 comments on commit cc29dbe

Please sign in to comment.