When developing web applications, how does one keep local files and remote files synced together? There is the obvious way, whenever you edit a file on your local machine, just upload that file to the remote machine. Is there a more efficient way? I ask because I have been using subversion control, and it is so easy to keep files synced on a remote server. All I have to do is "commit" and it will find the files which need to be replaced.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
I'm using rsync for that purposes. Works on Windows, Mac, and Unix/Linux. A little bit hard with file permissions on Windows, but after few hours of digging I managed to do it right. Very fast when synchronizing file trees.
Here are some options:
Web development suites for Mac OS X like Espresso and Coda have automatic FTP upload functions, where you can click a button and all the changed files in your local server upload replace the old ones in the remote server.
You could also set up a symlink between your local webserver root and a mounted FTP folder in your file structure like this:
Then, every time you change anything in the local folder, it is automatically placed/replaced into the FTP folder you have mounted. (On Windows, use
Additionally, if you wanted to, you could write a script (Applescript on a Mac, or VBscript on Windows) that uploads the files, however, this could get complicated and would require advanced knowledge of the scripting language of your OS.
On a PC, provided the destination (web server file system) is accessible as a UNC path or drive letter you can use any one of a number of backup programs to do this.