Added additional backup for password database
This commit is contained in:
parent
0d36fec85d
commit
3d489f8cad
2 changed files with 26 additions and 0 deletions
|
@ -111,6 +111,22 @@ in
|
||||||
Install.WantedBy = [ "multi-user.target" ];
|
Install.WantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.timers."backup-keepassxc-ninurta" = {
|
||||||
|
Unit.Description = "Backup password DB to ninurta";
|
||||||
|
Timer = {
|
||||||
|
OnBootSec = "15min";
|
||||||
|
OnUnitActiveSec = "1d";
|
||||||
|
};
|
||||||
|
Install.WantedBy = [ "timers.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.services."backup-keepassxc-ninurta" = {
|
||||||
|
Unit.Description = "Backup password DB to ninurta";
|
||||||
|
Unit.Type = "oneshot";
|
||||||
|
Service.ExecStart = "${pkgs.openssh}/bin/scp -P 22 -i /home/dadada/.ssh/keepassxc-backup /home/dadada/lib/sync/Personal.kdbx backup-keepassxc@ninurta.bs.dadada.li:/mnt/share/backups/backup-keepassxc/Personal.kdbx";
|
||||||
|
Install.WantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -459,6 +459,16 @@ in
|
||||||
password = "media";
|
password = "media";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users."backup-keepassxc" = {
|
||||||
|
home = "/mnt/storage/backups/backup-keepassxc";
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Backup KeepassXC database";
|
||||||
|
extraGroups = [ ];
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIirODQlcTJ8e9OcFuMlYlGekrUMtDpD5HhbTmuQ+jDW KeepassXC DB backup <dadada@dadada.li>"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
documentation.enable = true;
|
documentation.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue