From 20da594f97d25f9df0b16819519a59ca603067e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 18 Jan 2022 23:36:38 +0100 Subject: [PATCH] feat(restic): backup git --- configs/backup.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/backup.nix b/configs/backup.nix index d4ef6d9..ed53530 100644 --- a/configs/backup.nix +++ b/configs/backup.nix @@ -8,8 +8,13 @@ in inherit (restic) repository; timerConfig = { OnCalendar = "00:05"; RandomizedDelaySec = "5h"; }; passwordFile = toString ; + extraBackupArgs = [ + "--exclude-file=/home/kfm/projects/nixpkgs/.git" + "--exclude=node_modules" + ]; paths = [ "/home/kfm/work" + "/home/kfm/projects" ]; };