I'm using OSX High Sierra and bash. I'm trying to use a backup script based on IPv6 LLA (so I always reach the server, without DHCP, names etc).
With IPv4 this works:
rsync -e ssh /src/dir/* firstname.lastname@example.org:/dst/dir
On Linux/Bash this works:
rsync -e ssh /src/dir/* user@[fe80::a:b:c:d%eth0]:/dst/dir
But on OSX terminal this didn't work.
ssh: Could not resolve hostname [fe80: nodename nor servname provided, or not known rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/io.c(453) [sender=2.6.9]
I've tried a lot of quotes combinations but without success.