Skip to content

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

License

Notifications You must be signed in to change notification settings

noxifoxi/minecraft-server-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages