Browse Source

add modified SSH sync script

master
Max Erenberg 9 months ago
parent
commit
38964d353f
  1. 4
      bin/csc-sync-ssh

4
bin/csc-sync-ssh

@ -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

Loading…
Cancel
Save