aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system/borgbackup
diff options
context:
space:
mode:
Diffstat (limited to 'arch-system/borgbackup')
-rwxr-xr-xarch-system/borgbackup5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch-system/borgbackup b/arch-system/borgbackup
index 9c298c5..14b4795 100755
--- a/arch-system/borgbackup
+++ b/arch-system/borgbackup
@@ -56,8 +56,9 @@ if [ ! -d "$SNAPSHOT_TARGET" ]; then
sudo -n backup-sudo snapshot "$SNAPSHOT_TARGET"
fi
-if ! ssh -To BatchMode=yes -o ConnectTimeout=$NETWORK_TIMEOUT "$BORG_HOST" \
- "borg --version" > /dev/null; then
+if ! ssh -To BatchMode=yes -o ConnectTimeout=$NETWORK_TIMEOUT \
+ -o IdentitiesOnly=yes -o ConnectionAttempts=20 -i ~/.ssh/borg_key \
+ "$BORG_HOST" "borg --version" > /dev/null; then
echo "SSH server not reachable, skipping upload" >&2
exit 0
fi