add backups directly to b2
This commit is contained in:
parent
010c120dbb
commit
daef4f0972
1 changed files with 14 additions and 2 deletions
|
@ -31,12 +31,24 @@
|
|||
nssmdns = true;
|
||||
};
|
||||
|
||||
restic.backups.home = {
|
||||
passwordFile = "/etc/nixos/secrets/restic-password";
|
||||
restic.backups.home-to-brix = {
|
||||
passwordFile = "/etc/nixos/secrets/restic-password-brix";
|
||||
paths = [ "/home" ];
|
||||
repository = "rest:http://brix.local:8000/";
|
||||
timerConfig = { OnCalendar = "hourly"; };
|
||||
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" ];
|
||||
};
|
||||
|
||||
restic.backups.home-to-b2 = {
|
||||
passwordFile = "/etc/nixos/secrets/restic-password-b2";
|
||||
paths = [ "/home" ];
|
||||
repository = "b2:cyplo-restic-foureighty:/";
|
||||
timerConfig = { OnCalendar = "hourly"; };
|
||||
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" ];
|
||||
pruneOpts = [ "--keep-daily 8" "--keep-weekly 5" "--keep-monthly 13" "--keep-yearly 16" ];
|
||||
s3CredentialsFile = "/etc/nixos/secrets/b2";
|
||||
};
|
||||
|
||||
geoclue2.enable = true;
|
||||
xserver = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue