aboutsummaryrefslogtreecommitdiffstats
path: root/jo_borg_list.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jo_borg_list.sh')
-rwxr-xr-xjo_borg_list.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/jo_borg_list.sh b/jo_borg_list.sh
new file mode 100755
index 0000000..d3788da
--- /dev/null
+++ b/jo_borg_list.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Save the current BORG_PASSCOMMAND value
+OLD_BORG_PASSCOMMAND=$BORG_PASSCOMMAND
+
+# Unset the BORG_PASSCOMMAND to force passphrase prompt
+unset BORG_PASSCOMMAND
+
+# Run the borg list command (replace /path/to/repo with your actual repository)
+borg list ssh://u423613@u423613.your-storagebox.de:23/./backups/jo_macbook
+
+# Restore the original BORG_PASSCOMMAND
+export BORG_PASSCOMMAND="$OLD_BORG_PASSCOMMAND"
+
+# Optional: Notify that the script has finished
+echo "Borg list executed, and BORG_PASSCOMMAND restored."
+