sync/scripts/mount_general.sh

14 lines
313 B
Bash

#!/usr/bin/env bash
set -euo pipefail
sshMount () {
serverUser=$1;
serverHost=$2;
shift 2;
args=($@)
for ((i=0; i < ${#args[@]}; i=i + 2)); do
sshfs ${serverUser}@${serverHost}:/citadel/${args[$i]}/ $HOME/${args[$i + 1]}/ -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=8
done
}