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.
Apache Subversion 1.8 added support for incremental
svnadmin hotcopy
backups. Prior to version 1.8,svnadmin hotcopy
was able to create only complete backup, refusing to copy over existing hotcopied repository.The major benefit of using
svnadmin hotcopy
instead ofsvnadmin dump / load
is it's performance which is limited to your disk I/O speed only.