How to continue a download that failed in Subversion

I started loading the subversion dump into the repository. Before he could finish, I ran out of my quota and the team stopped

<<<A new transaction has begun, based on the original version 327 * edit path: XXX / YYY / Makefile ... done. svnadmin: Unable to write to file '/XXX/db/txn-protorevs/2738-24o.rev': disk quota exceeds

I asked for more quotas, but now I'm not sure how to continue importing. Should I just repeat the same command?

svnadmin load --parent-dir Software/xxx_modules /XXX/YYY < ~/xxx.svn.dmp

Or is there a way to restart the import in the version where it failed (327)?

+5
source share
1 answer

Here is how I did it at the end. Knowing that the download failed when importing version 327:

# Move the first 4 lines of the dump to new file
head -4 ~/xxx_modules.svn.dmp > partial.dump

# Find out where is the beginning of revision 327 that failed
grep -n "Revision-number: 327" ~/xxx_modules.svn.dmp

# Copy content of dump from that line (change X)
tail -n +X ~/xxx_modules.svn.dmp >> partial.dump

# Load using this partial dump
svnadmin load --parent-dir Software/xxx_modules /xxx/zzz/ < partial.dump
+8
source

All Articles