Enable compression, set TS window to 1, remove dirs from log

This commit is contained in:
Dennis Potter 2023-05-16 23:11:15 -07:00
parent 5599968d4b
commit 4628db3109
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -59,7 +59,7 @@ do
echo "${i^^}" >> /tmp/rsync_log_$date_styled
echo "======================================================" >> /tmp/rsync_log_$date_styled
rsync -av --delete --rsh="ssh -p $SSH_PORT -i $SSH_KEY" $i $SSH_USER@$SSH_HOST:$DST_DIR >> /tmp/rsync_log_$date_styled
rsync -av --modify-window=1 --delete --compress --rsh="ssh -p $SSH_PORT -i $SSH_KEY" $i $SSH_USER@$SSH_HOST:$DST_DIR | grep -E '^deleting|[^/]$' >> /tmp/rsync_log_$date_styled
done