Applescript to automatically Sync a Web Application and DB

Hi i just buy a Mac mini to make some mirroring of a web application i’m working on into another office.
the thing is that i need it to auto syncronize (only go to an IP with User and Password and grab files to populate the actual webroot) with a web application that is stored into an Intranet (on a PC running windows).
Also i need to auto syncronize the Mac mini DB.

Any idea?

Regards

What DB is running ?

This sounds like a good opportunity for a shell script and cron or maybe even a versioning system (SVN) using its hook scripts to replication the application .