From 1c65805589d1a0f4d0ab41e06278495f7510be7f Mon Sep 17 00:00:00 2001 From: hexchen Date: Fri, 6 Aug 2021 18:49:27 +0000 Subject: [PATCH] parsons: init backups --- hosts/parsons/configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/parsons/configuration.nix b/hosts/parsons/configuration.nix index 2b7bf48..e879b4c 100644 --- a/hosts/parsons/configuration.nix +++ b/hosts/parsons/configuration.nix @@ -33,5 +33,20 @@ services.nginx.recommendedProxySettings = true; networking.firewall.allowedTCPPorts = [ 80 443 ]; + services.restic.backups.tardis = { + passwordFile = "/persist/restic/system"; + s3CredentialsFile = "/persist/restic/system.s3creds"; + paths = [ + "/home" + "/persist" + ]; + pruneOpts = [ + "--keep-daily 7" + "--keep-weekly 5" + "--keep-monthly 3" + ]; + repository = "b2:tardis-parsons:system"; + }; + system.stateVersion = "21.05"; }