views:

2622

answers:

8

I'm looking for a place to put a few GB of documents (mostly .doc and .xls). My team already has a Subversion server set up for managing the documents we create, so I'd prefer to use that if possible. How well will Subversion handle all this extra stuff? Most of it is legacy information and will only ever have one version, but it is possible that a few documents could be updated.

I've been warned that SVN isn't particularly lots-of-big-binary-files-friendly. I'm wary of trying it to see whether it works since they'll always be in the repository history even if I later delete them.

Any alternatives? We'll need the ability to comment on and/or tag documents, but we can use a Delicious-like service combined with the URLs for the documents in SVN (or similar).

Later I'm not so worried about diffs on the binaries since, as stated above, they won't change much. I'm OK with a slight hassle if they do -- it's no worse than SharePoint.

+6  A: 

There's a difference between lots of big binary files, and a big number of binary files.

In my experience SVN is fine with individual binary files of several hundred megabytes. The only problems I've seen begin to occur with individual files of around a gigabyte or so. Operations fail for mysterious and unknown reasons, possibly SVN failing to handle network related problems.

I am not aware of any SVN problems related to the number of binary files, beyond their lack of merge-ability and the fact that binary files often can't be efficiently stored as deltas (SVN can use deltas).

So;

  • 1000 1mb files = fine.
  • 100 10mb files = fine
  • 10 100mb files = fine
  • 1 >1000mb file = not a good idea.

I would hope the size of your documents fits into one of the fine categories :)

PS - Thanks for the list formatting fix :)

Andrew Grant
I was hoping this distinction was true, but I wasn't sure.
James A. Rosen
Apparently, the "fact that revisions are not stored as deltas" is not true, according to the other answers. Could you change that?
onnodb
it takes a lot of ram to store the files, so maybe your web server is giving up (if served via Apache). I know I used to get errors with my little VM, these went after I allocated more RAM. Newer versions will be better apparently.
gbjbaanb
+1  A: 

Well it's going to take up alot of space storing all that in Subversion, I'll tell you that much. Subversion doesn't store binary files via delta's the way that it stores text files. It'll probably take up as much space as it would to just store a bunch of binary files on your hard drive, plus the repository.

You may be able to a server-side tiddlywiki to store the urls to the documents within Subversion.

If they are mostly .doc and .xls files, there's also Microsoft's Sharepoint.

leeand00
You are correct sir, which is the big problem we have at our work. There are other versioning systems being released which deal with binary files AND deltas.
Kezzer
SharePoint would be tough, if only because it would take me _weeks_ to upload all of these files individually.
James A. Rosen
Huh? One of the main selling points of Subversion over CVS is that Subversion DOES do deltas on binary files.
Andy Dent
Maybe something has changed since I started using it. Can you point me to some documentation of this? Thanks Andy!
leeand00
@leeand00: Here's an article that talks about SVN storage. http://www.ibm.com/developerworks/java/library/j-svnbins.html
Bill the Lizard
+1  A: 

It depends on how often the files are updated. It can't do anything about merging binary files and so everytime there's a conflict you'll have pain. Otherwise it's just storage and retrieval, and while it's not as good as with text it still handles that just fine.

Joel Coehoorn
A: 

I personally use Mercurial for such tasks. I've used it to store several hundreds of gigs of media. Yes, it takes up some disk space, but disk space is cheap. With Mercurial, you also get the benefit of it being distributed, so doing a "checkout", or clone as is know in Mercurial, you get the whole repo, not just a snapshot. If your server ever dies then, your still in business.

Dave
+1  A: 

ditto what Dave said about Mercurial, but replace Mercurial with git.

+1  A: 

From what I've seen Git is very fast compared to Subversion, and I've heard it's somewhat faster than Mercurial, but only by a bit. However, I've not specifically tested it with large, or lots of, binary files.

That being said the way Git tracks changes, I would imagine it's very efficient at dealing with binary files.

I can say this for sure though; Once I got used to Git there's no way I'd choose to go back to Subversion. When I have to work with Subversion repositories I still use Git though git-svn. This way I get all the advantages of distributed version control, but still have really nice support for pushing commits back to the central Subversion repository.

Robert Walker
I'm a _huge_ Git fan, but we already have SVN infrastructure, and we don't have it for Git here. If SVN won't work, so be it, but if it will, I'll take the free admin!
James A. Rosen
This is a straight question: what's so great about Git?
Peter Wone
Instead of trying to explain it here. Watch this, very opinionated, talk from the creator of Git.http://www.youtube.com/watch?v=4XpnKHJAok8Yes, it's opinionated, but I happen to agree the opinion. All I can say is give it a real chance. A couple of weeks at least. And you'll understand.
Robert Walker
Try telling us what its really like with binaries without *imagining* what it *might* be like. I can imagine git doesn't work with Microsoft files whatsoever - that'd be just as stupid a statement as your 'answer' was.
gbjbaanb
+6  A: 
Nitin Bhide
A: 

We built our subversion client exactly for this, as we did really big design/consulting jobs that really needed version control. We never had any problems with it.

Koen Bok