add modified SSH sync script

This commit is contained in:
Max Erenberg 2021-11-18 02:54:03 -05:00
parent 03ec30013a
commit 38964d353f
1 changed files with 3 additions and 1 deletions

View File

@ -14,11 +14,13 @@ SSH_USER=$4
SSH_KEYFILE=$5
RSYNC_HOST=$SSH_USER@$RSYNC_HOST
ADDRESS=$(cat ~/config/ADDRESS)
exec nice rsync -aH --no-owner --no-group --delete \
--timeout=3600 -4 \
--exclude .~tmp~/ \
--quiet --stats --log-file=/home/mirror/merlin/logs/transfer-ssh.log \
-e "ssh -i $SSH_KEYFILE" \
-e "ssh -b $ADDRESS -i $SSH_KEYFILE" \
$RSYNC_HOST:$RSYNC_DIR/ $TO
#134.71 needs to be used