Created
November 29, 2017 18:46
-
-
Save jarne/b2d6b1917abc4dc7eafa5442a82abd3d 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
# PocketMine-MP backup script | |
# (C) 2017 by jarne | https://github.com/jarne | |
BACKUP_NAME="$(date +%Y%m%d%H%M%S)" | |
# Create backup folder if not exists | |
mkdir backups | |
# Pack into archive | |
tar -czvf "$BACKUP_NAME.tar.gz" . | |
# Move into backups folder | |
mv "$BACKUP_NAME.tar.gz" backups |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment