-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Description
Dan has implemented backups using a mixture of shell, cron, and rsync (see minecraft-backup.j2) while Matteo is using the built in FDB update utility for the modded servers (see cron definition). Both methods seem appropriate for their respective server type, so I think we should implement both. My first thought is to break these two processes into different plays backup-ftb.yml and backup-cron.yml and then run them based on a backup variable:
Example defaults/main.yml
...
minecraft_server: minecraft
minecraft_backups: cron
...
Example tasks/main.yml
...
- name: Configure {{ backup_method }} backup method
include: "backup-{{ backup_method }}.yml"
when backup_method is defined
...
This seems like it would scale nicely as various server types are added. Not sure if there are obvious issues I'm missing though.
Reactions are currently unavailable