From 6a6ba4e3c6f5ec70722c78205af3e2486beb980b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Mon, 10 Jul 2023 22:17:37 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(neodymium)=20backup=20very=20impor?= =?UTF-8?q?tant=20keepass=20database=20to=20hydrogen=20daily?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/neodymium/system/borgbackup/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/neodymium/system/borgbackup/default.nix b/hosts/neodymium/system/borgbackup/default.nix index 290045a..972afcc 100644 --- a/hosts/neodymium/system/borgbackup/default.nix +++ b/hosts/neodymium/system/borgbackup/default.nix @@ -30,4 +30,15 @@ compression = "auto,zstd"; startAt = [ ]; }; + services.borgbackup.jobs.keepass = { + paths = "/home/laurent/Documents/db_mdp.kdbx"; + repo = "ssh://root@fainsin.bzh:624/srv/backup/keepass"; + user = "laurent"; + encryption = { + mode = "repokey"; + passCommand = "cat ${config.age.secrets.borgbackup.path}"; + }; + compression = "auto,zstd"; + startAt = "daily"; + }; }