Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
index-bak.html | ||
*.pdf.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |