Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 683 Bytes

README.md

File metadata and controls

41 lines (31 loc) · 683 Bytes

minecraft-server-backup

Simple backup script for servers running in screen using 7zip for compression.

Prerequisites

  • screen
  • p7zip
  • cron or similar (for automatic backups)

Automatic backups

For example use a cronjob to automate the backups:

$ crontab -e

for a backup every 12 hours add:

# world backup every 12 hours
0 */12 * * * ./backup.sh

or for daily backups at 18:00 (6 pm) add:

# world backup at 18:00
0 18 * * * ./backup.sh

Autostart server

Autostart the minecraft server after a reboot or a crash:

$ crontab -e

and add:

# check status every 5 minutes
*/5 * * * * ./autostart.sh