I have started to load a subversion dump into a repository. Before it could finish, I exhausted my quota and the command stopped
<<< Started new transaction, based on original revision 327 * editing path : XXX/YYY/Makefile ... done. svnadmin: Can't write to file '/XXX/db/txn-protorevs/2738-24o.rev': Disk quota exceed
I have asked for more quota but now I am not sure how to continue the import. Should I simply redo the same command ?
svnadmin load --parent-dir Software/xxx_modules /XXX/YYY < ~/xxx.svn.dmp
Or is there a way to restart the import at the revision where it failed (327) ?
Here is how I did it in the end. Knowing that the load failed when importing revision 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With