rsync -avh code example
Example 1: rsync remotely
for working in windows subsystem for lynux enter the following:
rsync -r work_server:location_of_work /mnt/c/directory_to_store
Example 2: rsync sync remote dir
rsync -a ~/dir1 username@remote_host:destination_directory