rsync -a username@remote_host:/home/username/dir1 place_to_sync_on_local_machine rsync -azP source destination rsync -a --exclude=pattern_to_exclude --include=pattern_to_include source destination rsync -azP -e 'ssh -p 44' adierebel@server:~/file destination