From 9e8b2fefb96619dc195e6c4956c58895401d2648 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 11 Nov 2020 05:14:12 -0600 Subject: [PATCH] Fix paper backup script rolling in hourlies --- roles/minecraft-paper/templates/backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/minecraft-paper/templates/backup.sh b/roles/minecraft-paper/templates/backup.sh index a1bf9fa..3975835 100644 --- a/roles/minecraft-paper/templates/backup.sh +++ b/roles/minecraft-paper/templates/backup.sh @@ -24,5 +24,7 @@ if ! [ -d "$OUTDIR" ]; then fi # WE MAKE BACKUP NOW SERGEI -tar czf "$OUTDIR/{{ paper_name }}-$(date -Iseconds)-full.tar.gz" "{{ paper_home }}/{{ paper_name }}/" +tar czf "$OUTDIR/{{ paper_name }}-$(date -Iseconds)-full.tar.gz" \ + --exclude "{{ paper_home }}/{{ paper_name }}/backups" \ + "{{ paper_home }}/{{ paper_name }}/"