blob: 6111b6ac74f096b93b0882a421c6f3f159bffe23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
borgfs ssh://u423613@u423613.your-storagebox.de:23/./backups/jo_macbook /mnt/borg
# 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."
|