rsync is an open-source tool for fast incremental file transfer.

Lately I’ve been transferring files frequently while using Linux, so I use rsync to meet my needs…

Here I’ll record the commands I commonly use with rsync.

rsync -ravzP ~/test [email protected]:/home/i/

Sync the local test folder to the remote machine

rsync -ravzP [email protected]:/home/i/test ~/

Sync the remote test folder to the local machine