Created
November 19, 2014 05:02
-
-
Save aikar/6cc08e9a880fcac5f569 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
trap "kill -- -$$" SIGINT | |
while true | |
do | |
echo "$(date): Syncing 1" | |
mcroot migrate smp1 game01.emc | |
echo "$(date): Syncing 2" | |
mcroot migrate smp2 game01.emc | |
echo "$(date): Syncing 3" | |
mcroot migrate smp3 game01.emc | |
echo "$(date): Syncing 4" | |
mcroot migrate smp4 game02.emc | |
echo "$(date): Syncing 5" | |
mcroot migrate smp5 game02.emc | |
echo "$(date): Syncing 6" | |
mcroot migrate smp6 game02.emc | |
echo "$(date): Syncing 7" | |
mcroot migrate smp7 game03.emc | |
echo "$(date): Syncing 8" | |
mcroot migrate smp8 game03.emc | |
echo "$(date): Syncing 9" | |
mcroot migrate smp9 game03.emc | |
echo "syncing smp9 dynmap" | |
# we moved smp9 to temp host and moved dynmap files out of normal location so its not in the copy | |
# prep it into an easy to rename folder | |
ssh smp9 rsync -a /opt/dynmap/smp9/ game03.emc:/opt/minecraft/server_smp9/dynmap_files | |
echo "$(date): Done syncing. Sleeping 5 mins" | |
sleep 300 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment