Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.48 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.48 KB

Minecraft Update-Role

=========

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.

Requirements


  • Curse provided .zip server modpack files
  • access to create files in /tmp
  • access to sudo for rsync and file deletion

Dependencies


  • unzip

Usage


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

Variable Defaults

  • TEMP_DIR='/tmp/updatemc/'
  • PACK_PATH='/usr/bin/minecraft/server/'

TODO

  • Update to do gzip of backups after they have been rsync'd.

Testing


  • shellcheck.net <= this is an online bash script linter i use to validate this script.

Links For Additional Information


  • ansible inventory <= this is python package just use pip install ansible in your virtual environment