Bug#385288: libapache2-svn sometimes create db logs owned by root
Peter Samuelson
peter at p12n.org
Thu Aug 31 03:13:27 UTC 2006
tags 385288 upstream wontfix
thanks
[Vitalie Lazu]
> Only nightly backup, but it can not break repositories
That's the culprit, then. With the bdb backend, _no_ operation is
truly read-only - even 'svnlook youngest' writes to log files, and can
create new log files. This is an implementation choice in the Berkeley
DB library, so it cannot be fixed in Subversion.
(This is not true of the fsfs backend, by the way, so if you convert
repositories to fsfs, this particular problem will disappear.)
I suggest running svnlook and svnadmin as the 'www-data' user:
svnrun() {
su www-data -c "$*"
}
local NEWREV=$(svnrun svnlook youngest $1)
...
svnrun svnadmin dump -q -r $OLDREV:$NEWREV --incremental $1
Or perhaps it is more convenient to run your entire backup script as
the www-data user.
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-subversion-maintainers/attachments/20060830/29f87877/attachment.pgp
More information about the pkg-subversion-maintainers
mailing list