Linux – auto sync directories 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 directory 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 directory after saving/modifying a file in this directory.

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.