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

RE: Recover a corrupt repository

From: Jonathan Ashley <jonathan.ashley_at_praxis-his.com>
Date: 2007-12-13 11:19:14 CET

> Oh yes. Backing up the just-committed revision in the
> post-commit hook right after it's been created is a great
> idea. It's recommended often on this list when people
> encounter these problems. "svnadmin dump --incremental" used
> to be the recommendation for these cases.
> Now that we have "svnsync", that may be easier and/or more useful.

Be *very* careful using svnsync in a post-commit script directly. The locking
method does not really work properly, and if two users commit simultaneously,
the target repository becomes broken. This has happened to me.

I worked around it by writing a small daemon process that listens for
incoming TCP/IP connections on a port and runs svnsync as a result. The post-
commit hook just makes this connection. That guarantees that only one svnsync
will run at a time.

--
Jon Ashley
This email is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, be advised that you have received this email in error and that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If you have received this email in error please contact the sender. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Praxis. 
Although this email and any attachments are believed to be free of any virus or other defect, no responsibility is accepted by Praxis or any of its associated companies for any loss or damage arising in any way from the receipt or use thereof. The IT Department at Praxis can be contacted at it.support@praxis-his.com.
Praxis High Integrity Systems Ltd:
Company Number: 3302507, registered in England and Wales
Registered Address: 20 Manvers Street, Bath. BA1 1PX
VAT Registered in Great Britain: 682635707
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 13 11:19:45 2007

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.