[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: How to restore from backup via svnsync? Or any other suggestions?

From: Giulio Troccoli <giulio.troccoli_at_uk.linedata.com>
Date: Thu, 23 Jul 2009 10:14:20 +0100

>

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

-----Original Message-----

> From: Neil Aggarwal [mailto:neil_at_JAMMConsulting.com]
> Sent: 23 July 2009 04:28
> To: users_at_subversion.tigris.org
> Subject: RE: How to restore from backup via svnsync? Or any
> other suggestions?
>
> > svnsync only reads the repository through the svn
> repository changes.
> > The upstream repository has no direct way to *publish* the
> contents of
> > its own hook scripts: in some ways, it's like trying to operate on
> > your own hand.
>
> I can understand that. The hook scripts are outside the
> version control.
>
> We do not use hook scripts for our repos so I think we are OK.
>
> Is there anything else I need to be wary of.
>

We will be using svnsync for our DR (I'm currently testin the process but it seems to be working quite nicely). We do have few repositories each with at least a pre- and post-commit hooks. BUT we do have a repository for the hooks, which is checked-out on the server and the hooks directory in each repository have a symlink to this working copy. We decided to go this way to version the hooks too.

I changed the post-commit hooks for each repository to call svnsync sync, and the post-revprop-change hooks to call svnsync copy-revprops. This way every commit and every change to the properties will be replicated.

So, all I have to do in case of DR is to set the symlinks for the hooks, delete (and I'm not even 100% sure this is needed) the properties at revision 0, and change the DNS to point to the new server. The users will nver notice anything different.

Giulio

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2374709

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-23 11:15:21 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.