/    Sign up×
Community /Pin to ProfileBookmark

Archiving file versions in ZIP – significant overheads?

I find myself working on a simplified versioning system. As with SVN, files can be committed, and older versions should be stored.

I am at the stage of working out the best way to store these versions on the server. Options include:

– simply as files
– files stored in an archive via PHP’s ZipArchve lib
– MySQL BLOBs (perhaps zipped/deflated as well)

I’m mainly looking at the Zip archive option, but my question is: would any saving in file size be negated by the overheads involved in PHP repeatedly opening, writing to and reading from this “versions archive”, or are these operations relatively lightweight?

Thanks in advance for any help

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @mitya spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...