I've been asked recently why ownCloud zipps its files instead of tarring them.
.tarpreserves file permissions, for one, and with
tar.bz2you have compression too.
Good question. Let me start by noting that we actually have both:
tar.bz2. But why zip?
A long time ago and far, far awayIn the beginning, we used
tar.bz2. As ownCloud gained Windows Server support, we added zip. Once we dropped Windows support, we could have killed the zip files. But we had reasons not to: tar is, sadly, not perfect.
Issues with TarYou see, tar isn't a single format or a 'real' standard. If you have a platform other than plain, modern Linux, think BSD or Solaris, or the weird things you can find on NAS devices, tar files can get you in trouble. Unlike
tarfiles also can have issues with character format support or deep folders. We've had situations where upgrades went wrong and during debugging we found that moving to
zipsolved the problem miraculously... And, as ownCloud, we're squarely focused on the practical user experience so we keep
See also the GNU tar manual if you want to know more about the various tar formats and limitations.
Sadly, sometimes it is impossible to find one thing that works for everyone and in every situation.
Tarred turtle pic from wikimedia, Creative Commons license. Yes, that's a different tar, I know. But - save the turtles!