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

Recommended method to keep an svn mirror in sync per commit?

From: Ron T <rontech101_at_gmail.com>
Date: Fri, 9 Aug 2019 11:45:30 -0700

Hi, What is the recommended method to keep an svn mirror in sync each time
a user commits? I have about 20 users posting commits throughout the day
and I would like to have the svn mirror duplicate or copy the current
commit from the source repo. I've tried putting this line in the source
repo post-commit file.
*svnsync sync file:///mnt/svn_mirror/* where svn_mirror is the target repo
but end up getting this error.

svnsync sync file:///mnt/svn_mirror/
Transmitting file data .....svnsync: E160004: Corrupt representation
'366133 106082 55 1620 4bd1fbfd9712b0660edfb5f56e9ef672'
svnsync: E160004: Malformed representation header

If I run the *svnsync sync file:///mnt/svn_mirror/* manually it works fine
and if I run it on a less frequently used repository it works fine, but I'm
guessing that when there are more users committing at a time or commits are
taking a longer period of time it may cause an issue? Could it also be a
date/time issue where if the date of the last synced revision on the target
is too far behind the source, the next svnsync will fail?

Both the source repo and the mirror target repo are on the same server.

Other recommended methods to accomplish this? Maybe svn notify?
Thanks!

My environment is:
- svn 1.11.0
- httpd-2.4.6
- CentOS 7 64bit
Received on 2019-08-09 20:51:17 CEST

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

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