aboutsummaryrefslogblamecommitdiffstats
path: root/jo_borg_list.sh
blob: d3788dace642cd2e8cef7bfc76e7216c3ce56b8f (plain) (tree)
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)
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."