exclude local share

This commit is contained in:
Cyryl Płotnicki 2020-07-12 08:53:40 +01:00
parent c96f2fd79e
commit b70af86822

View file

@ -1,4 +1,7 @@
{ config, pkgs, ... }:
let
extraArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" "--exclude '.local/share'" ];
in
{
services = {
@ -7,7 +10,7 @@
paths = [ "/home" ];
repository = "rest:http://brix.local:8000/";
timerConfig = { OnCalendar = "hourly"; };
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" ];
extraBackupArgs = extraArgs;
};
restic.backups.home-to-b2 = {
@ -15,7 +18,7 @@
paths = [ "/home" ];
repository = "b2:cyplo-restic-foureighty:/";
timerConfig = { OnCalendar = "hourly"; };
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" ];
extraBackupArgs = extraArgs;
s3CredentialsFile = "/etc/nixos/secrets/b2";
};
};