What's the best means to mirror a webserver directory on a local OS X machine?
October 17, 2005 5:41 PM
Subscribe
I maintain a complex website that I update by hand. (Unfortunately, this is unavoidable.) I want my local directory to be an exact mirror of the site, so that when I alter and modify thirty HTML files and I can simply run a script to copy them instead of FTPing them all by hand, in addition to removing deleted files and downloading any server-side changes made by scripts or other users. What's the best means to do this on OS X?
I've tried using Transmit's "Mirror" feature, but in my experience its datestamp-calculations are unreliable, and also have the sideffect that anytime I need to reupload or redownload the entire 2 GB site from scratch (if I believe my backup is bad, or if I change servers, for example), I need to synchronize the entire site in the other direction for the timestamps to work out.
I've tried to figure out RsyncX, but I'm not sure it's designed to do what I want, and it's a pretty hardcore piece of software. If it WILL do what I want, I'm all for learning how to make it do it, but I haven't found a good tutorial to that effect yet.
Any suggestions? I'm sure that there are a million people who need and have systems like this, but for the life of me I can't figure it out myself.
Also, any pointers to a good "newbie's guide to Rsync/RsyncX" would be appreciated, since I'd like to start running incremental archived backups as well.
posted by tweebiscuit to computers & internet (17 comments total)
posted by smackfu at 5:50 PM on October 17, 2005