views:

893

answers:

5

I'm considering using our SVN repository to manage all our documents. We mostly use Office 2007 (docx, xlsx) files. I thought the x was for xml but opening these files in notepad reveals a binary format.

I'm looking to find out what people's experience is with using svn to manage these kinds of files. Someone told me that SVN isn't so great for binary files.

+7  A: 

They are xml, mostly, but they're in a zipped format. In other words, try renaming the file to .zip and check how it looks then.

And no, SVN won't work terribly well with that format. I mean, it will certainly be able to store them, but it won't be able to diff them, and parallel editing won't work either.

The real benefits of SVN is with parallel working on the files (ie. two people working on the same files at the same time) and merging the changes later. Binary files won't work with that.

Lasse V. Karlsen
I'm thinking SVN could still be good. Not so much for collaboration but at least for version control. My documents seem to go through many revisions.
Mr Grieves
For that it will be good, SVN actually stores everything as binary files. It's the client that allows and handles merging if the files are configured to be text-files. The server is binary.
Lasse V. Karlsen
I use SVN to store map files, a mix of binary and text files. I mainly use it for revisions and security. On large projects people tend to have a thing with changing the specs half way though, using SVN lets me keep backups but at my control rather then just the nightly back up that IT do.
Nathan W
+2  A: 

Also see this question:
http://stackoverflow.com/questions/538643/how-good-is-subversion-at-storing-lots-of-binary-files/538658

The short version is "not as well as it could", because while svn can easily diff or merge text, it can't do that for binary files. Office 2007 uses an Xml format that could act like text, except that it's wrapped in a zip file and svn won't know how to look inside the zip file.

Joel Coehoorn
+7  A: 

TortoiseSVN is somewhat able to diff Office files -- it just calls into the file comparison features of Office.

Works OK for Word, so-so for Excel, and not at all for Powerpoint.

oefe
+2  A: 

While I would always encourage the use of source control, Subversion being my source control of choice, and I think it will work, I don't think that is what you really need in this case.

Try looking into a document management system like: Share Point (what we are using), Knowledge Tree, OpenDocMan, etc.

Bob The Janitor
+1  A: 

Related posts:

To summarize, storing your Office documents under SVN is a good idea, however, it demands a little extra work to be done in order to avoid problems. Such actions can be the following:

Eugenek