Automate KeepassXC database backup
parent
5957aa3ed4
commit
1c6f0776e1
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Save (encrypted) password database to cloud storage
|
||||
#
|
||||
# Can be run manually or daily by enabling the corresponding systemd user
|
||||
# service and timer, i.e.
|
||||
#
|
||||
# `systemctl --user enable save-passwddb.service`
|
||||
# `systemctl --user enable save-passwddb.timer`
|
||||
|
||||
rclone copy "$HOME/doc/passwd.kdbx" google-drive:
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Save KeypassXC password database to cloud
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/h/.bin/save-passwddb
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Save Keepass password database to cloud daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
RandomizedDelaySec=12h
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Reference in New Issue