rsync file from local to remote ssh code example
Example 1: how to rsync linux
rsync options source destination
Example 2: rsync sync remote dir
rsync -a ~/dir1 username@remote_host:destination_directory
rsync options source destination
rsync -a ~/dir1 username@remote_host:destination_directory