Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Exclude backup files
  • Loading branch information
Klaus Thoden committed May 25, 2020
1 parent cc29dbe commit 0098280
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions excludefile
@@ -0,0 +1,2 @@
index-bak.html
*.pdf.bak
10 changes: 5 additions & 5 deletions updatestatic.sh
@@ -1,10 +1,10 @@
#!/usr/bin/zsh

cp -rv /var/www/eoa /home/kthoden/backups/eoa_$(date -I)
rsync -Pazy /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
rsync -Pazy /var/www/eos /home/kthoden/backups/eos_$(date -I)
sudo rsync -Pazy --exclude-from=/home/kthoden/updatestaticexcludefile /home/kthoden/static/eos/eoa2-production.mpiwg-berlin.mpg.de:9010/ /var/www/eos/html
rsync -Pazy /var/www/mprl /home/kthoden/backups/mprl_$(date -I)
sudo rsync -Pazy --exclude-from=/home/kthoden/updatestaticexcludefile /home/kthoden/static/mprl/eoa2-production.mpiwg-berlin.mpg.de:9015/ /var/www/mprl/html

echo Finito

0 comments on commit 0098280

Please sign in to comment.