Linux – auto sync folders and files – setup in less than 5 minutes

If you are a webdeveloper using linux, you probably know this exhausting procedure:

You change a file, save it, and then you have to upload the changed file to the matching folder on your test web server in your favourite ftp program, i.e. FileZilla. You do this hundred times a day, thousand times a week.

On Windows, there is a program called WinSCP, a FTP client, that gets rid of this time consuming practice by offering an autosynchronization function for a specific folder after saving/modifying a file in this folder.

To immediately scale down your expectations: there is no linux GUI equivalent of WinSCP that has its built-in auto sync feature. But we have the shell. And we have built-in tools like rsync. And we have people like Gregg Hernandez, who create nifty little tools like watcher.

In this article I’ll show you how you can combine these two tools to get a powerful auto synchronization setup in less than 5 minutes.