keeping multiple version of files and getting rid of redunda

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
Adek336

keeping multiple version of files and getting rid of redunda

Post by Adek336 »

Hi!

In the programming world, I often make backup copies for later use, but often only perhaps a 30 lines change from version to version and if I just back it up, all the other lines get saved multiple times!

However, could I just keep the oldest version of the file and then keep a differential description of the next version as seen from the previous, something like diff, and later use a simple program which would restore the whole file from such differnce entries? That would not be very useful for backing up (only one copy of the whole) but it would be good for keeping track of changes, just think of it!

Cheers ;D

Adrian.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:keeping multiple version of files and getting rid of redu

Post by Candy »

Adek336 wrote: However, could I just keep the oldest version of the file and then keep a differential description of the next version as seen from the previous, something like diff, and later use a simple program which would restore the whole file from such differnce entries? That would not be very useful for backing up (only one copy of the whole) but it would be good for keeping track of changes, just think of it!
It's the basis of CVS and SVN etc. so I think you might be on to some good idea.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:keeping multiple version of files and getting rid of redu

Post by Solar »

Any version control system does that, actually, and for "traditional" VCS like CVS and SVN, exactly in the way you described. "Previous art", so to speak. ;)
Every good solution is obvious once you've found it.
Adek336

Re:keeping multiple version of files and getting rid of redu

Post by Adek336 »

oh my.. well I certainly was wondering from time to time what cvs/subversion are for.. and now I know ;D cheers it works like a wonder ;)
mystran

Re:keeping multiple version of files and getting rid of redu

Post by mystran »

Version control indeed is a must. Don't ever take a job anywhere without first making sure they use version control. Trust me, it's not worth it.
Post Reply