sync directory with remote linux centos code example
Example 1: rsync from remote to local
rsync -chavzP --stats [email protected]:/path/to/copy /path/to/local/storage
Example 2: rsync remotely
for working in windows subsystem for lynux enter the following:
rsync -r work_server:location_of_work /mnt/c/directory_to_store