BootStrapToday & Sensible Softwares Pvt Ltd in News

BootStrapToday & Sensible Softwares Pvt Ltd in News

Read the article here

Visit BootStrapToday

Mirroring Subversion Repository Using svnsync from BootStrapToday Account

Svnsync is a pretty handy and useful tool that comes along with Subversion installation for backup. At times taking backup of Subversion repository on file-system can get complicated as you need to ensure that files are not currently locked by any process. Svnsync can run on your live repository. You can have complete replica of your repository on your local machine without any major setup. Here I am going to discuss how you can use svnsync to backup your remote Subversion repository at BootStrapToday . Since BootStrapToday stores wiki, tickets and attachments in Subversion repository, you can get backup of all of your data.

This article assumes that you have created an account with BootStrapToday and have created at least one project. If you have not done it already you can create a new account from  BootStrapToday website signup page. You need to have Subversion installed on your local machine where you are going to mirror the repository.

Following are the steps required to perform the backup:

Step 1: Open terminal and fire following commad

svnadmin create /setup/repos/backuprepo

this will create Subversion repository at path /setup/repos/backuprepo, you can change path as per your requirment

Step 2: Edit the pre-revprop-change hook and add the following line


#!/bin/sh
exit 0

Step 3: Initialize the local repository


$ svnsync init --username USERNAME file:///path/to/localrepos https://<account>.bootstraptoday.com/source/<project>

Copied properties for revision 0.

Step 4: Run the first sync of repository


$ svnsync sync --username USERNAME file:///path/to/localrepos
 Committed revision 1.
 Copied properties for revision 1.
 Committed revision 2.
 Copied properties for revision 2.

[...]

Once you have done this, you can continuously run ‘svnsync sync’ command to periodically pull latest changes and keep your local mirror up-to-date.