cd $HOME
LOG=.cache/backup/log
PATH=$PATH:/sbin:/usr/sbin
-RESTIC="restic --password-file $HOME/.config/backup-passphrase --repo sftp:piware.de:backup/restic"
+#RESTIC="restic --password-file $HOME/.config/backup-passphrase --repo sftp:piware.de:backup/restic"
+# use TPM key; requires ~/.ssh/authorized_keys with
+# command="internal-sftp -d backup/restic",restrict KEY tpm-backup@abakus
+RESTIC="restic --password-file $HOME/.config/backup-passphrase --repo sftp:piwaretpmbackup:"
fail() {
notify-send -i /usr/share/icons/Adwaita/48x48/status/network-error-symbolic.symbolic.png -u critical -t 180000 "${1:-BACKUP FAILED!}"