exclude local share
This commit is contained in:
parent
c96f2fd79e
commit
b70af86822
1 changed files with 21 additions and 18 deletions
|
@ -1,22 +1,25 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
let
|
||||||
|
extraArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" "--exclude '.local/share'" ];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
restic.backups.home-to-brix = {
|
restic.backups.home-to-brix = {
|
||||||
passwordFile = "/etc/nixos/secrets/restic-password-brix";
|
passwordFile = "/etc/nixos/secrets/restic-password-brix";
|
||||||
paths = [ "/home" ];
|
paths = [ "/home" ];
|
||||||
repository = "rest:http://brix.local:8000/";
|
repository = "rest:http://brix.local:8000/";
|
||||||
timerConfig = { OnCalendar = "hourly"; };
|
timerConfig = { OnCalendar = "hourly"; };
|
||||||
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" ];
|
extraBackupArgs = extraArgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
restic.backups.home-to-b2 = {
|
restic.backups.home-to-b2 = {
|
||||||
passwordFile = "/etc/nixos/secrets/restic-password-b2";
|
passwordFile = "/etc/nixos/secrets/restic-password-b2";
|
||||||
paths = [ "/home" ];
|
paths = [ "/home" ];
|
||||||
repository = "b2:cyplo-restic-foureighty:/";
|
repository = "b2:cyplo-restic-foureighty:/";
|
||||||
timerConfig = { OnCalendar = "hourly"; };
|
timerConfig = { OnCalendar = "hourly"; };
|
||||||
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" ];
|
extraBackupArgs = extraArgs;
|
||||||
s3CredentialsFile = "/etc/nixos/secrets/b2";
|
s3CredentialsFile = "/etc/nixos/secrets/b2";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue