I'm looking for the best way to run a nightly script that exports a set of files from a SVN Repository to a local directory. When the export finishes, copy the contents of the local directory to several remote servers.
This will be a scheduled back job running on a Windows Server 2003 machine. Remote servers are all on the network, so there's no need for FTP, etc.
Pseudocode would run like this
1. svn export repo localdir (plus some switches)
2. ... wait to make sure export is finished ...
3. robocopy localdir \\remotedir1
4. robocopy localdir \\remotedir2, etc
I'm very new to writing batch jobs, but I'd like this to be as robust as possible: - copy doesn't start until export is done - if copy to remotedir1 fails, script still proceeds copying to remotedir2,3,etc - is it possible to log problems if there is any trouble at one of the steps?
Any input on what the batch job would look like would be much appreciated!