rsync -av --progress {myLocalDir} user@serverOrIp:/path/where/i/want/it
-a
stands for "archive" and it means that it should preserve permissions, owners, groups, symlinks, modification times, and be recursive (needed for copying directories). It is equivalent to -rlptgoD
-v
makes it more verbose--progress
or -P
makes it display the percentage completed so farImportant to mention, if you add a trailing slash to {myLocalDir}
it will copy the contents of myLocalDir
directly into /path/where/i/want/it
instead of creating a /path/where/i/want/it/myLocalDir
directory and copying the contents there.