Rick Cogley's Tech Logr

Short Technical Laser Bursts %%

RC Logr 20190124 195900

Thursday, 24 Jan, 2019

Did you know you can specify how rsync uses ssh? Set a variable like this:

1
sshopts="ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no"

Then call it like this:

1
2
3
rsync --verbose --compress --archive --recursive --partial /
--progress --checksum --delete --rsh="$sshopts" public/ /
$user:$hostpath

Bonus tip: target needs a trailing slash!

RC Logr 20190124 195900 - Did you know you can specify … Rick Cogley
Back to Home