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

Re: Full & incrmental dumps

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Mon, 26 May 2008 18:24:41 -0500

On May 26, 2008, at 11:47, Fouts Christopher (QNA RTP PT PREV) wrote:

>>>>> Makes sense. So in my post-commit hook script, how can I name the
>>>>> incremental dump files automtically, since I obviously will
>>>>> have lots of these, per commit as you suggest.
>>>>
>>>>
>>>> Put basename of the repository path and the revision number in the
>>>> name.
>>>
>>> Ok I'm trying to implement this idea.
>>>
>>> I have the following in my post-commit hook script
>>>
>>> REPOS="$1"
>>> REV="$2"
>>> #Incremental dump after each commit
>>> INCRDUMP=/usr/local/bin/svnadmin dump --revision PREV:$REV
>>> --incremental DUMPFILE=/some_path/mycode-incr.$REV
>>> $INCRDUMP $REPOS > $DUMPFILE
>>>
>>> I see the $DUMPFILE createad, but has a size of "0" meaing I did the
>>> dump wrong!!! What would be the correct command to dump the
>>> changes for the current commit
>>>
>>> INCRDUMP=/usr/local/bin/svnadmin dump --deltas --incremental
>>>
>>> perhaps???
>>
>> Sorry this is what I have...
>>
>> REPOS="$1"
>> REV="$2"
>> #Incremental dump after each commit
>> INCRDUMP=/usr/local/bin/svnadmin dump
>> DUMPFILE=/some_path/mycode-incr.$REV
>> $INCRDUMP $REPOS --revision $REV --incremental > $DUMPFILE
>>
>> and I still get a dump file size of 0.
>
> Ok I fixed it. I had to do this...
>
> REPOS="$1"
> REV="$2"
> #Incremental dump after each commit
> SVNADMIN=/usr/local/bin/svnadmin
> DUMPFILE=/some_path/mycode-incr.$REV
> $SVNADMIN dump $REPOS --revision $REV --incremental > $DUMPFILE
>
> Apparently the scripts did not parse (design-intent) the
> space before the "dump" in my original definition of
> INCRDUMP=/usr/local/bin/svnadmin dump

Correct. Consult your favorite Bash scripting manual. :)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-27 01:25:11 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.