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

Re: Subversion Blues - please help

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Sun, 26 Sep 2010 10:28:11 -0400

On Fri, Sep 24, 2010 at 5:23 PM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> Luis Rojas wrote on Fri, Sep 24, 2010 at 15:16:17 -0400:

>>
>> We actually suspect the disk, but we don't have enough evidence to
>> suggest the disk is faulty, we are a small development team, and is
>> very rarely we submit at the same time, i am not saying it cant happen
>> but is very unlikely. also, as far as i know, no other process where
>> accessing the repository at the time.
>>
>
> "No other process" --- did you mean: no other process except for the
> post-commit hook script?

Could be a broken pre-commit or post-commit script: I've actually seen
such scripts miswritten and atempt to "rsync -av --delete $srcdir/
$targetdir/', and forget to set $targetdir. Hilarity ensued.

The safe way to rebuild and update a full repository is:

     mv $repo $repo.save
      svnadmin hotcopy $repo.save $repo.new
    rsync -av --delete $repo.save/ $repo.new/ ---dry-run # confirm
changes, and objects like symlinks, which older Subversion does not
handle
    mv $repo.new $repo

That gets your files on an entirely new chunk of disk, which can help
protect you from disk failure issues.
Received on 2010-09-26 16:28:53 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.