Skip to content

Add backup functionality #11

Open
Open
@brahmlower

Description

@brahmlower

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions