Skip to content

Instantly share code, notes, and snippets.

@jarne
Created November 29, 2017 18:46
Show Gist options
  • Save jarne/b2d6b1917abc4dc7eafa5442a82abd3d to your computer and use it in GitHub Desktop.
Save jarne/b2d6b1917abc4dc7eafa5442a82abd3d to your computer and use it in GitHub Desktop.
# 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