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

Attachment: signature.asc
Description: Digital signature

Reply via email to