Skip to content

Instantly share code, notes, and snippets.

@jandahl
Created November 19, 2013 13:21
Show Gist options
  • Save jandahl/7545278 to your computer and use it in GitHub Desktop.
Save jandahl/7545278 to your computer and use it in GitHub Desktop.
#!/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