Use RSYNC to Synchronise a directory to a linux server
To synchronize files between your local machine and a server, you can download software but did you know you can also do it with one single terminal command?
Synchronise files to server
This command will synchronise the contents from local
targetfolder on the server and will prompt for the server password.
rsync -zaP --delete ./sourcefolder/. email@example.com:~/targetfolder
Meaning of the parameters
|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|