Unix: Sync directory with FTP or SFTP directory
- by Svish
I have a website on my local computer running Mac OS X. I am wondering if there is any built-in command that I can run in the Terminal that will upload that website to my webserver either through FTP or, if possible, SFTP. Installing new commands through MacPorts is also a possibility. A big bonus would be that it only uploaded the files that needs to be updated and not everything else.
It would also be nice if I can tell it to delete the files on the server that no longer exists locally once in a while.
Any good tips?