#cli #ssh rsync [option] [source] [destination] Here are some of the many options available: -a | copy files recursively -h | produce a readable output –progress | displays the process while the command is being run -q | processes running in the background will not be shown -v | processes that are run will be written out for the user to read -z | compress the data More available options can be visible by running rsync –help ### To send files from local source to a remote server, you may follow this format: rsync [option] [source] user@hostname-or-ip:[destination path] For instance: rsync -avh /home/test-rsync/ [email protected]:/home/receive-rsync/ ### It is also possible to send files from a remote origin to a local server A simple change in syntax will do the opposite: rsync -avh [email protected]:/home/receive-rsync/ /home/test-rsync/ In this case, we have copied files **from a remote** server 5.252.161.46 **to our local** directory local-file-directory. ## Links: https://www.heficed.com/tutorials/vps/how-to-use-rsync/ 202403151028