From a150266548a05f88aed9f0cfe495f8557f31a0a9 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 10 Feb 2020 00:05:31 +0100 Subject: [PATCH] server/minecraft: Enabled auto backup --- roles/server/minecraft/meta/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/server/minecraft/meta/main.yml b/roles/server/minecraft/meta/main.yml index 29da736..2550f10 100644 --- a/roles/server/minecraft/meta/main.yml +++ b/roles/server/minecraft/meta/main.yml @@ -7,3 +7,11 @@ dependencies: - role: misc/system_user # system_user # user_directory + - role: misc/backup_files + # domain + backup_directory: "{{ data_directory }}" + before_backup_command: | + {{ remote_control_script | quote }} "save-off"; + {{ remote_control_script | quote }} "save-all"; + after_backup_command: | + {{ remote_control_script | quote }} "save-on";