=========
This role runs the bash script in ./files that can either backup, restore, or backup, install new package, and the restore backups to a new install of forge modpacks.
- Curse provided .zip server modpack files
- access to create files in /tmp
- access to sudo for rsync and file deletion
- unzip
Currently the role tasks do not function but the bash script does. You can run it manually using command below:
Backup only:
sudo bash ~/minecraftupdate.sh --pack-path /opt/minecraft/PO3/ -b
Installation of a new updated pack version:
sudo bash ~/minecraftupdate.sh --pack-path /opt/minecraft/CrackPack3/ -n Eternal+\(Server+Pack+1.3.3\).zip
It will rsync the backup paths to the TEMP directory, unzip the new pack folder into the directory, then rsync the files back.
Usage commands:
sudo bash ~/minecraftupdate.sh -h
TEMP_DIR='/tmp/updatemc/'
PACK_PATH='/usr/bin/minecraft/server/'
- Update to do gzip of backups after they have been rsync'd.
- shellcheck.net <= this is an online bash script linter i use to validate this script.
- ansible inventory <= this is python package just use
pip install ansible
in your virtual environment