I'm dumping an svn repository to a giant USB disk that is formatted FAT due to necessity (treat this as unchangeable).

It conks out when you try to create a file larger than 4 gb.

I need a tool that I can pipe data to that will create files of arbitrary size that when catted together will be the original file. I can write a tool to do this, but if one already exists I'd rather use it.


EDIT: A second look at the split man page looks like it might work.

1 Answer 1


SVN dumps are one gigantic file, and FAT conks out after 4GB.

split is a unix tool that sinks input into a series of files. From the manpage:

       split - split a file into pieces

       split [OPTION]... [INPUT [PREFIX]]

       Output  fixed-size  pieces of INPUT to PREFIXaa, PREFIXab, ...; default
       size is 1000 lines, and default PREFIX is `x'.  With no INPUT, or  when
       INPUT is -, read standard input.

Something like svnadmin dump $reponame | split -d -b 1073741824 "$reponame." -d will give you $reponame.1, $reponame.2 and so on, with a gigabyte file each. Hopefully FAT will continue to function with multiple large files.

To put them back together again, use cat: cat $reponame.* | svnadmin load $reponame"

  • That's what I ended up doing, although I didn't see the -d flag. Cheers!
    – richo
    Mar 29, 2010 at 4:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.