From b00faf77bb64957d58faf3ed0e492983f98e80d0 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 9 Aug 2021 20:19:27 +0200 Subject: [PATCH] services: move to restic for everything --- services/bitwarden_rs.nix | 2 +- services/gitea/default.nix | 4 ++-- services/matrix.nix | 2 +- services/nextcloud.nix | 2 +- services/paperless.nix | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/bitwarden_rs.nix b/services/bitwarden_rs.nix index 27ea5a2..e57ee2c 100644 --- a/services/bitwarden_rs.nix +++ b/services/bitwarden_rs.nix @@ -85,7 +85,7 @@ in { bitwarden_rs-vault ]; - my.services.borg-backup = mkIf cfg.enable { + my.services.restic-backup = mkIf cfg.enable { paths = [ "/var/lib/bitwarden_rs" ]; exclude = [ "/var/lib/bitwarden_rs/icon_cache" ]; }; diff --git a/services/gitea/default.nix b/services/gitea/default.nix index 8997664..fc6b501 100644 --- a/services/gitea/default.nix +++ b/services/gitea/default.nix @@ -61,7 +61,7 @@ in { }; # NixOS module uses `gitea dump` to backup repositories and the database, - # but it produces a single .zip file that's not very borg-backup friendly. + # but it produces a single .zip file that's not very restic friendly. # I configure my backup system manually below. dump.enable = false; @@ -76,7 +76,7 @@ in { # gitea, so it may produce corrupt files in the snapshot if I push stuff # around midnight. I'm not sure how `gitea dump` handles this either, # though. - my.services.borg-backup = { + my.services.restic-backup = { paths = [ config.services.gitea.lfs.contentDir config.services.gitea.repositoryRoot diff --git a/services/matrix.nix b/services/matrix.nix index c4e55ef..dea5a4c 100644 --- a/services/matrix.nix +++ b/services/matrix.nix @@ -280,7 +280,7 @@ in { federationPort.public ]; - my.services.borg-backup = let + my.services.restic-backup = let dataDir = config.services.matrix-synapse.dataDir; in mkIf cfg.enable { paths = [ dataDir ]; diff --git a/services/nextcloud.nix b/services/nextcloud.nix index 8cbd3cd..533e16e 100644 --- a/services/nextcloud.nix +++ b/services/nextcloud.nix @@ -71,7 +71,7 @@ in }; }; - my.services.borg-backup = let + my.services.restic-backup = let nextcloudHome = config.services.nextcloud.home; in lib.mkIf cfg.enable { paths = [ nextcloudHome ]; diff --git a/services/paperless.nix b/services/paperless.nix index adebc51..5a970b4 100644 --- a/services/paperless.nix +++ b/services/paperless.nix @@ -54,7 +54,7 @@ in }; }; - my.services.borg-backup = mkIf cfg.enable { + my.services.restic-backup = mkIf cfg.enable { paths = [ "/var/lib/docker/volumes/paperless_data" "/var/lib/docker/volumes/paperless_media"