On Wed, Jun 1, 2016 at 11:29 AM, Pavel Lyalyakin <
pavel.lyalyakin_at_visualsvn.com> wrote:
> Hello Michael,
>
> On Wed, Jun 1, 2016 at 7:18 PM, Michael Schwager <mschwage_at_gmail.com>
> wrote:
> ...
> > My intention is to perform the following:
> ...
> > * svnadmin verify /home/svn/hotcopy/repoX. If error, warn and exit.
> > * svnadmin hotcopy into /home/svn/hotcopy/repoX. If error, warn and exit.
> > * svnadmin verify /home/svn/hotcopy/repoX. If error, warn and exit.
>
> These steps don't require you to shut down httpd.
>
Most likely quite true, but it's nighttime and I'm paranoid. I'm looking
for guarantees wherever I can find them. and the cost is quite low (ie, I
shut down something that nobody should be using anyway).
> * svnadmin freeze /path/to/repoX -- rsync -av /path/to/repoX
> > /home/svn/rsync/repoX.
> > * rsync -c -n -av /path/to/repoX /home/svn/rsync/repoX. (perform a
> checksum
> > compare) If error, warn and exit.
>
> Why don't you run `rsync` on "/home/svn/hotcopy/repoX"?
>
That assumes the hotcopy is correct. At the start of my script, the only
thing that I am comfortable assuming is correct is... well, very little.
Even the original repo may have a bug lurking in it somewhere. But the
closer I can get to the original, presumably good, copy of our code, the
happier I am every step along the way.
> > ...I've always presumed this meant that the hotcopy did back up locks and
> > hook scripts...
>
> Yes, hotcopy makes full repository copy with locks and hook scripts.
> Read SVNBook[2].
>
Excellent. Thanks for the confirmation. I note that the svn book does
mention that it performs a "fully functional Subversion repository, able to
be dropped in as a replacement for your live repository", but as there are
caveats with the svndump command that the uninitiated (yours truly) may not
be familiar with, it's not entirely clear that hotcopy obviates all of
those concerns. Indeed, a hotcopy does not produce the name number of files
as an rsync (a file named rev-prop-atomics.shm is missing in one of my
hotcopied directories), so the question remained in my mind until now.
Thanks again for the help!
--
-Mike Schwager
Received on 2016-06-01 19:17:31 CEST