]> piware.de Git - bin.git/commitdiff
backup-mount: Add
authorMartin Pitt <martin@piware.de>
Thu, 28 Aug 2025 04:07:04 +0000 (06:07 +0200)
committerMartin Pitt <martin@piware.de>
Thu, 28 Aug 2025 04:07:53 +0000 (06:07 +0200)
backup-mount [new file with mode: 0755]

diff --git a/backup-mount b/backup-mount
new file mode 100755 (executable)
index 0000000..be28306
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -eux
+MOUNT="$XDG_RUNTIME_DIR/backup"
+echo "mount point: $MOUNT"
+
+mkdir -p "$MOUNT"
+exec restic --password-file $HOME/.config/backup-passphrase --repo sftp:piware.de:backup/restic mount "$MOUNT"