Rick Cogley's Tech Logr

Short Technical Laser Bursts %%

Welcome

Here be my pithy, short, technical nuggets. Maybe I’m the only one who cares. Who says Hugo can’t be used for microblogging‽

24 Jan 2019

«19:59:01»

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