install-rsync.
Once Rsync is installed, you can use the rsync command to transfer files and directories between systems. The basic syntax of the command is as follows:
rsync [options] [source] [destination]
Where "options" are any additional options you want to use, "source" is the file or directory you want to transfer, and "destination" is the location you want to transfer the file or directory to.
For example, to transfer a file "example.txt" from the local system to a remote system with the IP address "192.168.0.100", the command would be:
rsync example.txt 192.168.0.100:/path/to/destination
or if you are rsyncing the file with your server it would be:
rsync example.txt root@yourdomain.com :/path/to/destination
Rsync offers a wide variety of options that can be used to customize the file transfer process. Some of the most commonly used options include:
-a: This option tells Rsync to transfer files in "archive" mode, which preserves file permissions, ownership, timestamps, and other metadata.
-v: This option tells Rsync to be verbose, which means it will display detailed information about the file transfer process.
-z: This option tells Rsync to compress the files during transfer, which can speed up the transfer process for large files.
--delete: This option tells Rsync to delete files on the destination that no longer exist on the source.
By using these options and other Rsync features, you can customize the file transfer process to suit your specific needs.