-a archive i.e recursion
-v verbose output
-h human readable progress
-z compress during data transfer
-e use ssh protocol for transfer
rsync -vhz localfile /localdir/ rsync -avzh /fromdir/subdir /todir/subdir/
rsync -vhz somefile user@ip-or-hotname:/home/ rsync -azvh somedir user@ip-or-hotname:/home/
rsync -vhz somefile user@ip-or-hotname:/home/ rsync -azvh somedir user@ip-or-hotname:/home/
This is done by applying the āeā switch i.e
rsync -vhze ssh somefile user@ip-or-hotname:/home/ rsync -azvhe ssh somedir user@ip-or-hotname:/home/
rsync -vzhe ssh user@ip-or-hotname:/home/filename /localdir/subdir rsync -avzhe ssh user@ip-or-hotname:/home/directory/subdir /localdir/subdir