1

i have the code, images / css / js all stored as part of a svn repository, but i'm not sure what to do with several large video files that are part of my site as well...

should i:

  1. upload them from my local machine whenever needed (no svn)
  2. check them into main repository
  3. keep them in a different repository and update from it when needed
  4. keep them in a location like S3 and pull them when needed
siliconpi
  • 8,105
  • 18
  • 69
  • 107

2 Answers2

2

I definitely suggest that you keep a backup somewhere centrally. So option 1 is out.

If you want to use SVN, it will depend. The reason why people generally don't like to store binary files in SVN is that binary deltas are usually useless. According to this stackoverflow question SVN also isn't good at storing very large files.

However, if you only have a few video files, that fall within the limits that SVN can handle. And if they aren't going to change too much, I would go ahead and put them in SVN. This will be the easiest solution with the least hassle.

Otherwise, I would look into a solution that doesn't require too many build steps. I'd suggest to point your links to the videos directly to S3 and not have an intermediary step of pulling the videos into your application and then deploying to a sever.

Community
  • 1
  • 1
Peter
  • 870
  • 6
  • 20
1

Have a look at this stackoverflow answer: How good is Subversion at storing lots of binary files?

I personally have run into weird errors when using SVN to store files > 1Gb. I suspect it would be better to have them in a seperate (non-versioned) directory, and pull them in when needed.

Not to mention the hassle when you want to do a new checkout and have to wait hours before the full tree is in ...

Community
  • 1
  • 1
Jeroen Baert
  • 1,273
  • 2
  • 12
  • 28