Created
January 4, 2015 23:26
-
-
Save StudioLE/e3370591d018e832cc89 to your computer and use it in GitHub Desktop.
Simple script to backup a minecraft server
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 | |
echo "Backup LE-CRAFT" | |
echo "Ensure you have set /save-off or /stop" | |
echo "Are you ready? [y/n]" | |
read execute | |
if [ $execute = y ] | |
then | |
echo "Backing up.." | |
cp -rp "/home/le/lecraft/world" "/home/le/lecraft/backups/world-"$(date +"%F-%H-%M") | |
echo "Complete" | |
echo "Remember to set /save-on again" | |
else | |
echo "Aborted" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment