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

Re: [RFE] Backing up repository differentially

From: Jan Hendrik <jan.hendrik_at_myrealbox.com>
Date: 2007-02-14 12:18:47 CET

Concerning Re: [RFE] Backing up repository dif
lightbulb432 wrote on 13 Feb 2007, 14:36, at least in part:

>
> How could I automate the differential backup so it does it
> automatically from the last revision as opposed to having to remember
> and enter it manually? Just wanting to see if there's any way to do it
> already, either from Subclipse or Ant or something...if not, maybe a
> custom command-line script could do it?

Not exactly what you would like, but supposedly you could expand
it to use a marker file or the name of the last incremental dump
which includes the REV # to do what you want as a command
outside of SVN hooks or even run it as hook for every 10, 20, 50
commits. This is what I have in the post-commit.bat:

<script>

@echo off

set repo=%1
set rev=%2
set log="D:\tmp\dump\post-commit.log"
set err="D:\tmp\dump\post-commit-err.log"
set dump_file="D:\tmp\dump\repos1_incremental.r%rev%"
set svnadmin="E:\PRG\Tools\Subversion\bin\svnadmin.exe"

( echo ========================================================================
echo Start commit %repo% r%rev%
date /t
time /t ) >> %log%

set dump_cmd=start "dump %repo% r%rev%" /B /BELOWNORMAL %svnadmin% dump %repo% -r %rev% --incremental
(%dump_cmd% > %dump_file%) && echo "incrementally dumped revision %rev% to %dump_file%" >> %log%

( echo End commit
date /t
time /t ) >> %log%

</script>

JH
---------------------------------------
Freedom quote:

     The only justifiable purpose of political institutions
     is to assure the unhindered development of the individual.
               -- Albert Einstein

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 14 12:19:14 2007

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.