BLoB
BLoB

Reputation: 9725

Automatically export a working copy from SVN

Let me start by saying we already backup the repository on the file system, I also create a dump of the repository which is also backed up.

Just tested hotcopy and all it does is create a copy of the repository, which we already backup.

I've been requested to create an automated export of working copies for all projects (ideally using a .bat file run via a scheduler) so, for example, that it can be performed every night out of hours. I cannot seem to be able to find details of how to automate this process using a tool such as svnadmin (their documentation isn't the best).

This is in case everything goes kaput, I can quickly start coding on the text files at a moments notice without having to faff with setting up an svn server, reloading the repository etc.

Upvotes: 1

Views: 184

Answers (1)

bahrep
bahrep

Reputation: 30662

You can run the svn checkout command to checkout a working copy of your project and schedule to svn update to bring the working copy up to date with the repository's state. Alternatively, you can run svn export.

You can use Windows Task Scheduler to automatically run your script every night.

Upvotes: 0

Related Questions