dotfiles/nixos/backups.nix

23 lines
748 B
Nix
Raw Normal View History

2020-06-04 17:51:26 +01:00
{ config, pkgs, ... }:
{
services = {
restic.backups.home-to-brix = {
passwordFile = "/etc/nixos/secrets/restic-password-brix";
paths = [ "/home" ];
repository = "rest:http://brix.local:8000/";
timerConfig = { OnCalendar = "hourly"; };
2020-07-12 08:45:43 +01:00
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" ];
2020-06-04 17:51:26 +01:00
};
restic.backups.home-to-b2 = {
passwordFile = "/etc/nixos/secrets/restic-password-b2";
paths = [ "/home" ];
repository = "b2:cyplo-restic-foureighty:/";
timerConfig = { OnCalendar = "hourly"; };
2020-07-12 08:45:43 +01:00
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" "--exclude='.cargo'" ];
2020-06-04 17:51:26 +01:00
s3CredentialsFile = "/etc/nixos/secrets/b2";
};
};
}