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

Re: getting the rev number since last incremental backup

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-08-06 15:00:46 CEST

On Fri, 2004-08-06 at 04:39, zhimin@iss.nus.edu.sg wrote:
> Hi,
>
> I am trying to do a incremental backup for a svn repository (SVN 1.06). For
> first dump, I did a full dump:
> $ svnadmin dump /path/to/repo > /path/to/dumpfile
>
>
> Then for every subsequent incremental dump, I would do:
> $ svnadmin dump /path/to/repo --incremental -r X:HEAD >> /path/to/dumpfile
>
> The problem is to get the revision number X. How do I to get the rev number
> since the last incremental backup ? Any svn tool for this?

'svnlook youngest' prints the value of HEAD.

Use that command, and then run always 'svnadmin dump' with 2 specific
revision numbers. And store the the last revision number in a text file
somewhere.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 6 15:03:04 2004

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.