This Python script, named Guardian, has been developed to automate the execution of my Minecraft server and perform daily backups of the server world at 5 o'clock in the morning.
- Python 3.x
- Library
halo
(can be installed viapip install halo
)
- Make sure you have Python 3.x installed on your system.
- Install the
halo
library using the following command:
pip install halo
- Place the
paper.jar
file in the same directory as the Guardian script. - Run the Guardian script using the following command:
python Guardian.py
- The Minecraft server will be automatically started and kept running. The backup will be performed every day at 5 o'clock in the morning.
- The backup will be stored in the current directory in the format
mundo_backup [date-time].zip
.
This project is licensed under the MIT License. See the LICENSE file for details.