Skip to content

Instantly share code, notes, and snippets.

@bcbwilla
Created December 7, 2014 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcbwilla/0d6cafe6eb69f7e42698 to your computer and use it in GitHub Desktop.
Save bcbwilla/0d6cafe6eb69f7e42698 to your computer and use it in GitHub Desktop.
Super simple minecraft server world backup with zippy bits
#!/bin/bash
# Minecraft Server Backup
stamp=$(date +%d_%m_%Y_%H_%M_%S)
cd $HOME/servers/backups/mcprohost/
mkdir -p $stamp
wget -r -nH -P $stamp ftp://$MCP_USER:$MCP_PASS@$MCP_IP/world*
zip -rm $stamp $stamp
echo "Backup complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment