You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Faheem Mitha <fa...@email.unc.edu> on 2003/10/15 17:57:30 UTC

subversion post-commit hook stopped working

Dear People.

I was using a post-commit hook as follows.

#! /bin/sh

if [ $(/sbin/ifconfig | grep -cs eth0) != 0 ]; then

rm -rf /home/faheem/backsvn/svn*
/usr/lib/subversion/hot-backup.py /home/faheem/svn
/home/faheem/backsvn
. /home/faheem/.keychain/${HOSTNAME}-sh
rsync -avz --partial --delete -e ssh /home/faheem/backsvn/$(ls
/home/faheem/backsvn)/ faheem@remotehost:svn/

fi

This hook worked fine with 0.26 but I just upgraded to 0.30 and it no
longer seems to work. Of course I did a dump/load between 0.26 and
0.30, so I copied it over and I may have made some subtle mistake.

The hook works fine when run on its own. Any suggestions what I might
be doing wrong?

                                                 Faheem.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: subversion post-commit hook stopped working

Posted by Faheem Mitha <fa...@email.unc.edu>.
On 15 Oct 2003 13:12:13 -0500, C. Michael Pilato <cm...@collab.net> wrote:
> Faheem Mitha <fa...@email.unc.edu> writes:
>
>> Dear People.
>> 
>> I was using a post-commit hook as follows.
>> 
>> #! /bin/sh
>> 
>> if [ $(/sbin/ifconfig | grep -cs eth0) != 0 ]; then
>> 
>> rm -rf /home/faheem/backsvn/svn*
>> /usr/lib/subversion/hot-backup.py /home/faheem/svn
>> /home/faheem/backsvn
>> . /home/faheem/.keychain/${HOSTNAME}-sh
>> rsync -avz --partial --delete -e ssh /home/faheem/backsvn/$(ls
>> /home/faheem/backsvn)/ faheem@remotehost:svn/
>> 
>> fi
>> 
>> This hook worked fine with 0.26 but I just upgraded to 0.30 and it no
>> longer seems to work. Of course I did a dump/load between 0.26 and
>> 0.30, so I copied it over and I may have made some subtle mistake.
>
> Did you update your hot-backup.py script to the version included in
> 0.30?

Yes. I've just realised my mistake. It was a silly typo. Thanks.

                                                         Faheem.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: subversion post-commit hook stopped working

Posted by "C. Michael Pilato" <cm...@collab.net>.
Faheem Mitha <fa...@email.unc.edu> writes:

> Dear People.
> 
> I was using a post-commit hook as follows.
> 
> #! /bin/sh
> 
> if [ $(/sbin/ifconfig | grep -cs eth0) != 0 ]; then
> 
> rm -rf /home/faheem/backsvn/svn*
> /usr/lib/subversion/hot-backup.py /home/faheem/svn
> /home/faheem/backsvn
> . /home/faheem/.keychain/${HOSTNAME}-sh
> rsync -avz --partial --delete -e ssh /home/faheem/backsvn/$(ls
> /home/faheem/backsvn)/ faheem@remotehost:svn/
> 
> fi
> 
> This hook worked fine with 0.26 but I just upgraded to 0.30 and it no
> longer seems to work. Of course I did a dump/load between 0.26 and
> 0.30, so I copied it over and I may have made some subtle mistake.

Did you update your hot-backup.py script to the version included in
0.30?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org