From 708cf947de13f20da75ca4834e0b9614b629df67 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 19 May 2024 15:31:20 +0200 Subject: [PATCH] backups: remove droppie There were no backups to droppie since December 2023. We can always add it back, if desired. --- modules/forgejo/default.nix | 26 -------------------------- modules/keycloak/default.nix | 23 ----------------------- modules/mailman/default.nix | 22 ---------------------- modules/mastodon/default.nix | 23 ----------------------- modules/nextcloud/default.nix | 26 -------------------------- 5 files changed, 120 deletions(-) diff --git a/modules/forgejo/default.nix b/modules/forgejo/default.nix index 6b0ca96a..5c6d44bc 100644 --- a/modules/forgejo/default.nix +++ b/modules/forgejo/default.nix @@ -173,32 +173,6 @@ GPG_TTY = "$(tty)"; }; - services.restic.backups.forgejo-droppie = { - paths = [ - "/var/lib/forgejo" - "/tmp/forgejo-backup.sql" - ]; - timerConfig = { - OnCalendar = "*-*-* 02:00:00 Etc/UTC"; - # droppie will be offline if nachtigall misses the timer - Persistent = false; - }; - initialize = true; - passwordFile = config.age.secrets."restic-repo-droppie".path; - repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar"; - backupPrepareCommand = '' - ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d gitea > /tmp/forgejo-backup.sql - ''; - backupCleanupCommand = '' - rm /tmp/forgejo-backup.sql - ''; - pruneOpts = [ - "--keep-daily 7" - "--keep-weekly 4" - "--keep-monthly 3" - ]; - }; - services.restic.backups.forgejo-storagebox = { paths = [ "/var/lib/forgejo" diff --git a/modules/keycloak/default.nix b/modules/keycloak/default.nix index bae4a913..69825f8d 100644 --- a/modules/keycloak/default.nix +++ b/modules/keycloak/default.nix @@ -60,29 +60,6 @@ }; }; - services.restic.backups.keycloak-droppie = { - paths = [ "/tmp/keycloak-backup.sql" ]; - timerConfig = { - OnCalendar = "*-*-* 02:00:00 Etc/UTC"; - # droppie will be offline if nachtigall misses the timer - Persistent = false; - }; - initialize = true; - passwordFile = config.age.secrets."restic-repo-droppie".path; - repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar"; - backupPrepareCommand = '' - ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d keycloak > /tmp/keycloak-backup.sql - ''; - backupCleanupCommand = '' - rm /tmp/keycloak-backup.sql - ''; - pruneOpts = [ - "--keep-daily 7" - "--keep-weekly 4" - "--keep-monthly 3" - ]; - }; - services.restic.backups.keycloak-storagebox = { paths = [ "/tmp/keycloak-backup.sql" ]; timerConfig = { diff --git a/modules/mailman/default.nix b/modules/mailman/default.nix index 958b04ee..3db13b64 100644 --- a/modules/mailman/default.nix +++ b/modules/mailman/default.nix @@ -80,28 +80,6 @@ # ]) #''; - services.restic.backups.mailman-droppie = { - paths = [ - "/var/lib/mailman" - "/var/lib/mailman-web/mailman-web.db" - "/var/lib/mailman-web/settings_local.json" - "/var/lib/postfix/conf/aliases.db" - ]; - timerConfig = { - OnCalendar = "*-*-* 02:00:00 Etc/UTC"; - # droppie will be offline if nachtigall misses the timer - Persistent = false; - }; - initialize = true; - passwordFile = config.age.secrets."restic-repo-droppie".path; - repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar"; - pruneOpts = [ - "--keep-daily 7" - "--keep-weekly 4" - "--keep-monthly 3" - ]; - }; - services.restic.backups.mailman-storagebox = { paths = [ "/var/lib/mailman" diff --git a/modules/mastodon/default.nix b/modules/mastodon/default.nix index ecd75282..3a12353d 100644 --- a/modules/mastodon/default.nix +++ b/modules/mastodon/default.nix @@ -100,29 +100,6 @@ }; }; - services.restic.backups.mastodon-droppie = { - paths = [ "/tmp/mastodon-backup.sql" ]; - timerConfig = { - OnCalendar = "*-*-* 02:00:00 Etc/UTC"; - # droppie will be offline if nachtigall misses the timer - Persistent = false; - }; - initialize = true; - passwordFile = config.age.secrets."restic-repo-droppie".path; - repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar"; - backupPrepareCommand = '' - ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d mastodon > /tmp/mastodon-backup.sql - ''; - backupCleanupCommand = '' - rm /tmp/mastodon-backup.sql - ''; - pruneOpts = [ - "--keep-daily 7" - "--keep-weekly 4" - "--keep-monthly 3" - ]; - }; - services.restic.backups.mastodon-storagebox = { paths = [ "/tmp/mastodon-backup.sql" ]; timerConfig = { diff --git a/modules/nextcloud/default.nix b/modules/nextcloud/default.nix index cc485b1e..00101c49 100644 --- a/modules/nextcloud/default.nix +++ b/modules/nextcloud/default.nix @@ -132,32 +132,6 @@ database.createLocally = true; }; - services.restic.backups.nextcloud-droppie = { - paths = [ - "/var/lib/nextcloud/data" - "/tmp/nextcloud-backup.sql" - ]; - timerConfig = { - OnCalendar = "*-*-* 02:00:00 Etc/UTC"; - # droppie will be offline if nachtigall misses the timer - Persistent = false; - }; - initialize = true; - passwordFile = config.age.secrets."restic-repo-droppie".path; - repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar"; - backupPrepareCommand = '' - ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d nextcloud > /tmp/nextcloud-backup.sql - ''; - backupCleanupCommand = '' - rm /tmp/nextcloud-backup.sql - ''; - pruneOpts = [ - "--keep-daily 7" - "--keep-weekly 4" - "--keep-monthly 3" - ]; - }; - services.restic.backups.nextcloud-storagebox = { paths = [ "/var/lib/nextcloud/data"