Only nightly backup, but it can not break repositories and it happens sometimes and on random repositories.
below is my backup script:

backup_svn() {
    local REVFILE="$1/backup_rev.txt"
    local OLDREV=`cat "$REVFILE" 2>/dev/null || echo -n 0`
    local NEWREV=`svnlook youngest $1`
    echo Repository: $1

    if [ $OLDREV != $NEWREV ]
        then
        local OUTPUT_FILE="$TMP_SVN_DIR/$1-$OLDREV-$NEWREV.dump"
        OLDREV=$(($OLDREV+1))
        echo "   $OLDREV:$NEWREV"
        svnadmin dump -q -r $OLDREV:$NEWREV --incremental $1 > "$OUTPUT_FILE"
        echo -n $NEWREV > "$REVFILE"
    fi
}




On 8/30/06, Peter Samuelson <[EMAIL PROTECTED]> wrote:

[Vitalie Lazu]
> We host a lot of repositories at www.assembla.com, sometimes we have
> problems because in db/ directory of svn repository appears log files
> owned by root, apache run as www-data user and it can not serve that
> repository anymore.

If apache does not have permission to create files as root, I wonder
who is doing it.  Files owned by root don't just appear out of nowhere;
some process running as root has to create them.  Do you have some
administrative cron job, or something, which touches the repositories?

Thanks,
Peter


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE9eGAXk7sIRPQRh0RAqC2AKCEfgUNiHMG2J76b7JeDNk3M/SOcgCbBRM1
D5ngnWwhSEJIdWYeJ8MvHh8=
=63jm
-----END PGP SIGNATURE-----





--
Best regards,
Vitalie

Reply via email to