]> piware.de Git - bin.git/commitdiff
backup: use URL schema for default SSH key
authorMartin Pitt <martin@piware.de>
Thu, 28 May 2026 09:48:37 +0000 (11:48 +0200)
committerMartin Pitt <martin@piware.de>
Thu, 28 May 2026 09:48:37 +0000 (11:48 +0200)
This works on a freshly installed machine without ssh config yet.

backup

diff --git a/backup b/backup
index 0e98ed8d40f98abf64fdac79571a89ad8edd19ef..17331e415c2ec1e1abe74e2582cfbaedb11dec12 100755 (executable)
--- a/backup
+++ b/backup
@@ -3,7 +3,8 @@ set -eu
 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"
+# use default SSH key
+# RESTIC="restic --password-file $HOME/.config/backup-passphrase --repo sftp://piware.de:659/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:"