Skip to content

Commit

Permalink
Enable debug output for sshfs
Browse files Browse the repository at this point in the history
  • Loading branch information
pschiffe committed Jul 18, 2024
1 parent 605364b commit c7c5968
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion borg-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ if [ -n "${SSHFS:-}" ]; then
SSHFS_PASSWORD=''
SSHFS_PASSWORD_OPT=''
fi
if [ "${DEBUG}" -eq 1 ]; then
SSHFS_DEBUG_OPT='--debug -o debug,sshfs_debug,loglevel=debug'
else
SSHFS_DEBUG_OPT=''
fi
mkdir -p /mnt/sshfs
eval "${SSHFS_PASSWORD} sshfs ${SSHFS} /mnt/sshfs ${SSHFS_IDENTITY_FILE} ${SSHFS_PASSWORD_OPT}"
eval "${SSHFS_PASSWORD} sshfs ${SSHFS_DEBUG_OPT} ${SSHFS} /mnt/sshfs ${SSHFS_IDENTITY_FILE} ${SSHFS_PASSWORD_OPT}"
BORG_REPO=/mnt/sshfs
fi

Expand Down

0 comments on commit c7c5968

Please sign in to comment.