From 021808d40a7cbe1e28c3caf4f9b5d7b7b0a2c04d Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Wed, 11 Nov 2026 10:18:49 +0100 Subject: [PATCH] Exclude mastodon cache from backups --- tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 3de360e..e3f3ecf 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -31,6 +31,13 @@ - "{{ mastodon_docker_backup_storage }}" # cache storage intentionally omitted +- name: Make sure cache directory is excluded from backup + lineinfile: + path: "/backup-dirs-exclude" + line: "{{ item }}" + loop: + - "{{ mastodon_docker_cache_storage }}" + - name: Copy the docker compose file to server template: src: "docker-compose.yml.j2"