Transferring and Synchronizing Files with rsync
Learn how to transfer and synchronize files between two machines using the rsync command.
We'll cover the following...
rsync
The rsync program can copy files and folders between two locations on the same system and transfer files between local and remote locations.
Let’s use rsync to transfer the testsite directory from one user to another. This time, we copy it to a new folder named testsite2.
We execute this command to perform the copy:
rsync -v -r testsite/ {username}@{ip}:testsite2
...