Using CVS to archive CMS Content

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Using CVS to archive CMS Content

Post by CoderGoblin »

viewtopic.php?t=15190 mentions building a "CVS" System although the question was more based on how to store the information zip etc.

1) Has anyone built or considered using PHP based CVS interface to actually archive information from their CMS to check things in and out of an archive.

As this is only an archive system editing the CVS process would be
-Check Out Existing Archive if exists
-Overwrite with Current Content
-Commit.

Advantages:
-Automatic version control.
-Easy(ish) difference function.
-Able to rollback
- Smaller file size for large content blogs.

Disadvantages
- Complexity
- Small Content Blogs with infrequent changes take up additional space.
- System calls required therefore windows OR linux based.

Can anyone else think of any advantages/disadvantages?

2) Does anyone know of any PHP "classes" for CVS. I have looked on the web with no luck.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Using CVS to archive CMS Content

Post by Weirdan »

CoderGoblin wrote: 2) Does anyone know of any PHP "classes" for CVS. I have looked on the web with no luck.
http://cvs.php.net/pecl/cvsclient/ ?
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

Can anyone else think of any advantages/disadvantages?
Would need to run a CVS server, most shared hosts won't allow that.
CVS isn't exactly binary file friendly.

200th Post!
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Thanks for the responses.

Buddha443556 - That's ok . Design is for our own server.
Weirdan - I was really looking for a PHP web based CVS program and having access to the PHP classes if any therein. Searched the web using "CVS client PHP" and found some but will look at them later as I have been diverted onto something else.

But keep your ideas/comments coming. There are appreciated.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

A troll through some open source wiki code might also turn up something useful.
Post Reply