Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- rm -rf /bleeds/l4d2/game/left4dead2/downloads/*
- Excludes="--exclude game/left4dead2/addons/sourcemod/logs \
- --exclude game/left4dead2/cfg/server.cfg \
- --exclude game/left4dead2/addons/sourcemod/data/AutoSetup \
- --exclude game/steam_appid.txt \
- --exclude rsync.sh \
- --exclude readme \
- --exclude start-l4d2.sh \
- --exclude iptables.sh \
- --exclude webbackup \
- --exclude mysqlbackups \
- --exclude game/left4dead2/addons/sourcemod/scripting \
- --exclude /bleeds/l4d2/game/left4dead2/addons/sourcemod/configs/sourcebans/sourcebans.cfg \
- --exclude game/left4dead2/addons/sourcemod/configs/admins_simple.ini"
- clear
- echo -e "New Jersey DRY RUN rsync...\n\n"
- sshpass -p 'mypassword' rsync -avhiPn --delete $Excludes -e ssh /bleeds/l4d2/ root@45.63.15.19:/bleeds/l4d2/
- while true; do
- read -p "Proceed with the changes? (y/n) " yn
- case $yn in
- [Yy]* ) echo -e "\n\n";
- break;;
- [Nn]* ) exit;;
- * ) echo "Ugh!";;
- esac
- done
- echo -e "New Jersey rsync...\n\n"
- sshpass -p 'mypassword' rsync -avhiP --delete $Excludes -e ssh /bleeds/l4d2/ root@45.63.15.19:/bleeds/l4d2/
- clear
- echo -e "Dallas DRY RUN rsync...\n\n"
- sshpass -p 'mypassword' rsync -avhiPn --delete $Excludes -e ssh /bleeds/l4d2/ root@144.202.76.31:/bleeds/l4d2/
- while true; do
- read -p "Proceed with the changes? (y/n) " yn
- case $yn in
- [Yy]* ) echo -e "\n\n";
- break;;
- [Nn]* ) exit;;
- * ) echo "Ugh!";;
- esac
- done
- echo -e "Dallas rsync...\n\n"
- sshpass -p 'mypassword' rsync -avhiP --delete $Excludes -e ssh /bleeds/l4d2/ root@144.202.76.31:/bleeds/l4d2/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement