Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CVS server wrong backup restore

Status
Not open for further replies.

cigno5e5

Programmer
Mar 3, 2004
11
IT
Hi at all, i've a problem.
Some days ago my cvs server falls down by hard disk problem. My last backup of cvs repository is dated 4 February 2005, but, from this date to fall down time i committed several files (and for some file i increased more than 1 revision). Now i restored my backup but i've a lot of files that have working-copy's revision greater than repository's version.
FOr example, my file "Foo.java" in the repository has version 1.24 on 04 February 2005, but my working copy has version 1.27 on 14 February.
CVS server deny me commit options!!!

The first solution i found was to hand-modify ".entries" file in CVS directory on my working copy, but there is problems for other developers!!!

Someone can help me?
I'm using CVS for NT version 1.11.13

THank you very much
 
Hi cigno5e5,

Have you tried doing an update first? CVS should be able to handle this kind of situation quite well. Make sure you make a back up of your working directory before doing so, just in case CVS recognises that as a conflict and start merging your files.

Hope that helps,

Ed
 
eclipse ide and wincvs both deny me the update options because they intercept the strange situation. Cvs can manage this scenario only if repository version is two or more revisions greater than working copy version.
Actually solution is perfomed by:
- on local machine backup working copy to temporary directory
- replace working copy with cvs "checkout" command
- restore local backup of working copy over the working copy yet restored
- commit changes

PS: after some studies we suspect that our backup software make errors in incremental backup of cvs directory.
 
Hi cigno5e5,

That sounds good and thanks for sharing, but wouldn't you have to do it for all the developers who have some newer versions?

Cheers,

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top