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

RE: post-commit hook script

From: Hensley, Richard <Richard.Hensley_at_McKesson.com>
Date: 2003-03-18 02:28:46 CET

Problem solved:

The parent directory /usr/userdata was owned by another user and group.
When I moved ./repos and ./backup under a directory that was owned by
the www:www user and group, it started working. This may be some issue
with hot-backup.py, I'm not really sure.

-----Original Message-----
From: Hensley, Richard
Sent: Monday, March 17, 2003 5:12 PM
To: 'dev@subversion.tigris.org'
Subject: post-commit hook script

I'm trying to use the hot-backup.py script during the post-commit hook
script, but I can't seem to get it to work.

All my files are owned by www:www, which is the apache user. The
post-commit is executable. Here are the contents of post-commit:

/usr/userdata/repos/bin/hot-backup.py /usr/userdata/repos
/usr/userdata/backup >> usr/userdata/repos/logs/backup.log
echo "$REPOS $REV committed" >> /usr/userdata/repos/logs/commit.log

When I commit to the repository, the file commit.log gets a message on
each commit. However, the backup.log file gets the message "Beginning
hot backup of '/usr/userdata/repos'." and then no more messages.

If I log onto the computer as www, change into the hooks directory, and
type "./post-commit /usr/userdata/repos 5", the script works as
expected. Meaning I get a backup of the repository, the backup.log file
contains all the lines sent to stdout, and I get a message in
commit.log.

Does anybody have any insight as to where I went wrong?

Richard
Received on Tue Mar 18 03:56:13 2003

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

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