Skip to content
Snippets Groups Projects
Commit 0d9b1089 authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

[borg] use alternative repo ssh location syntax

This adds the ability to specify an alternative SSH port within
the host variable.
parent 1efa2386
Branches
Tags
No related merge requests found
......@@ -50,7 +50,7 @@ export BORG_PASSPHRASE="$passphrase"
# destination specific checks
[ "$directory" != "" ] || fatal "Destination directory not set"
if [ "$host" != "localhost" ]; then
execstr_repository="$user@$host:$directory"
execstr_repository="ssh://${user}@${host}${directory}"
else
execstr_repository="$directory"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment