While doing some work on migrating accounts to a new server, I needed to use rsync over ssh. The ssh daemon on the remote server runs on a non-standard port, and all the port related options to rsync only change settings if you’re running the rsync-daemon.
After some searching, the man page of rsync offered a solution:
rsync -avz -e "ssh -p $portNumber" /localpath user@remoteip:/remotepath
Related posts:
Install and Configure TigerVNC server on Ubuntu 18.04 nixCraft
6 Github alternatives that are open source and self-hosted nixCraft
Slow performance issues of OpenBSD or FreeBSD KVM guest on Linux nixCraft
How to find out Raspberry Pi GPU and ARM CPU temperature on Linux nixCraft Updated Tutorials/Posts
Spread the love