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

AW: hotcopy --incremental auto-upgrade Re: Backup strategy sanity check

From: Markus Schaber <m.schaber_at_codesys.com>
Date: Mon, 12 Aug 2013 13:55:37 +0000

Hi,

Von: Les Mikesell [mailto:lesmikesell_at_gmail.com]
>
> On Sat, Aug 10, 2013 at 5:25 PM, Daniel Shahaf <danielsh_at_elego.de> wrote:
> >
> >> It would have been nice if --incremental would automatically upgrade
> >> the target repository (and fallback to a full backup) if the versions
> >> mismatch.
> >
> > Hmm. Interesting idea, but replacing failure modes with automagical
> > behaviour is generally looked at with skepticism (is this error
> > _really_ always safe to not tell the admin about?). For the sake of
> > argument, why shouldn't admins who want this behaviour opt-in to it by
> > having their scripts do
> >
> > svnadmin upgrade $dest
> > svnadmin hotcopy --incremental $src $dest
> >
> > ? (Note that 'upgrade' is idempotent, and will exit without error for
> > already-most-recent-format repositories.)
>
> Which case is worse for an unattended script? Leaving you with no
> backups or one that needs a newer program to be able to use? And which case
> might an early user of subversion have been trained to expect?

I'd oppose auto-upgrading the destination repository to whatever toolchain version one happens to use - what happens when the source repository was not yet upgraded? Or it was upgraded from 1.5 format to 1.6 format, while the hotcopy is executing using 1.8?

However, I'd be fine with "svnadmin hotcopy" automatically falling back to a full copy (or do whatever else is necessary to create a backup) when the destination has a different version than the source repository, maybe guarded by an extra --allow-upgrades command line parameter.

Best regards

Markus Schaber

CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH

Inspiring Automation Solutions

3S-Smart Software Solutions GmbH
Dipl.-Inf. Markus Schaber | Product Development Core Technology
Memminger Str. 151 | 87439 Kempten | Germany
Tel. +49-831-54031-979 | Fax +49-831-54031-50

E-Mail: m.schaber@codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com
CODESYS forum: http://forum.codesys.com

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
Received on 2013-08-12 15:56:19 CEST

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