Created
November 19, 2013 13:21
-
-
Save jandahl/7545278 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
#!/usr/bin/env bash | |
# Minecraft Overviewer stuff circulator | |
# v2 | |
# Makes some assumptions, here be dragons | |
# VARIABLES | |
serverBaseDirectory=/opt/msm/servers/ | |
worldName=Popeworld | |
workingDirectory=~/overviewer | |
configFilename=~/overviewer.config | |
numberOfCores=2 | |
webAccessibleOutputDirectory=/home/minecraft/Popeworld-overviewer/ | |
# Doing the dirty work | |
msm $worldName worlds backup && | |
rsync --archive --delete $serverBaseDirectory/$worldName/world* $workingDirectory/$worldName/ --exclude=plugins/* && | |
/usr/bin/overviewer.py --config=$configFilename --processes $numberOfCores && | |
rsync --archive --delete $workingDirectory/$worldName-render/ $webAccessibleOutputDirectory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment