Im using reposurgon which reads svn dump's, created simply by:
svnadmin dump /svnroot/my-repo > svn_dump
However I need to update this file because we are still committing to the repository and re-creating the entire file each time is quite time consuming (its almost 60gig).
So my question is:
Is there a way to append onto this file each time to avoid fully re-creating the dump?
Ideally this would be possible without manually having to record the ranges dumped each time
Update
I manged to do this using incremental dumps, but the first 4 lines of each file after the first need to be removed.
svnadmin dump -r0 /svnroot/my-repo --incremental > svn_dump
svnadmin dump -r1 /svnroot/my-repo --incremental | sed -n '5,$ p' >> svn_dump
svnadmin dump -r2 /svnroot/my-repo --incremental | sed -n '5,$ p' >> svn_dump
svnadmin dump -r3 /svnroot/my-repo --incremental | sed -n '5,$ p' >> svn_dump
svnadmin dump -r4 /svnroot/my-repo --incremental | sed -n '5,$ p' >> svn_dump
# is the same as:
svnadmin dump -r0:4 /svnroot/my-repo > svn_dump
However this seems fairly add-hoc, and for it to be useful Id need to write a more comprehensive script.
You dumpfile is really big. Are you storing a lot of binary files in your repository? If so you may want to consider storing binaries in another location.
Anyway, there is the possibility of an
incrementaldump. From the svn manual:You can have a script that uses this functionality like:
You can also use the other useful thing - the
deltas! For example you can have a weeklyfullbackup and daily -incrementalanddeltasbackups.However if you are storing big amounts of binary data be aware that
deltaswill be very ineffective. The way that svn works internally is to blame here - it is just not meant to store binary files.The general answer is that you cannot directly do this - i.e. you cannot append to a dump file. That's it.