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" ];
|
||||
};
|
||||
|
||||
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.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue