From 3581dfc24a1ecc21d6ab8b9d8172f1e84539c9a3 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 18 Aug 2024 14:47:05 +0200 Subject: [PATCH] Restic: Add additional backup targets --- hosts/franz/restic.nix | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/hosts/franz/restic.nix b/hosts/franz/restic.nix index f98c796..bfb9913 100644 --- a/hosts/franz/restic.nix +++ b/hosts/franz/restic.nix @@ -224,6 +224,62 @@ in { - arion -f ${arionPath}/auth/arion-compose.nix -p ${arionPath}/auth/arion-pkgs.nix stop after: - arion -f ${arionPath}/auth/arion-compose.nix -p ${arionPath}/auth/arion-pkgs.nix start + infrastructure: + from: /storage/dataset/docker/infrastructure + to: + - zfs + - ssd + - eustachius + cron: '55 3 * * *' # Every Day at 3:55 + hooks: + <<: *default_hooks + before: + - arion -f ${arionPath}/infrastructure/arion-compose.nix -p ${arionPath}/infrastructure/arion-pkgs.nix stop + after: + - arion -f ${arionPath}/infrastructure/arion-compose.nix -p ${arionPath}/infrastructure/arion-pkgs.nix start + wiki: + from: /storage/dataset/docker/wiki + to: + - zfs + - ssd + - eustachius + cron: '55 3 * * *' # Every Day at 3:55 + hooks: + <<: *default_hooks + before: + - arion -f ${arionPath}/wiki/arion-compose.nix -p ${arionPath}/wiki/arion-pkgs.nix stop + after: + - arion -f ${arionPath}/wiki/arion-compose.nix -p ${arionPath}/wiki/arion-pkgs.nix start + stats: + from: /storage/dataset/docker/stats + to: + - zfs + - ssd + - eustachius + cron: '55 3 * * *' # Every Day at 3:55 + hooks: + <<: *default_hooks + before: + - arion -f ${arionPath}/stats/arion-compose.nix -p ${arionPath}/stats/arion-pkgs.nix stop + after: + - arion -f ${arionPath}/stats/arion-compose.nix -p ${arionPath}/stats/arion-pkgs.nix start + minio: + from: /storage/dataset/docker/stats + to: + - zfs + - ssd + - eustachius + cron: '55 3 * * *' # Every Day at 3:55 + options: + backup: + exclude: + - '*.pmtiles' + hooks: + <<: *default_hooks + before: + - arion -f ${arionPath}/minio/arion-compose.nix -p ${arionPath}/minio/arion-pkgs.nix stop + after: + - arion -f ${arionPath}/minio/arion-compose.nix -p ${arionPath}/minio/arion-pkgs.nix start backends: zfs: type: local