Keeping in sync one website used under several domain names

If and only if you are using Linux then investigate rsync.

Edit:

I am working on a website which is going to run under several domain names.

I am intrigued as to what you hope to gain by duplicating content across several domains? Personally I think unique content gains more SEO “Brownie Points”.