This command will synchronise the contents from local sourcefolder to targetfolder on the server and will prompt for the server password.
rsync -zaP --delete ./sourcefolder/. loginname@yourserver.com:~/targetfolder
| parameter | description |
|---|---|
| z | compress data during the transfer |
| a | archive files and directory while synchronizing. Ensures recursion |
| P | show progress during transfer |
| –delete | delete files on the server that are not on the sending side |