Home
Über
Projekte
 CVS
 Contributors
 Online
 Download
 RCS
 Texinfo
 Texi2HTML
Geschichte
Werkzeuge
Unterstützung
 
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.7 Sicherung eines Repositories erstellen

Es sind keine Besonderheiten für die Dateien im Repository zu beachten. Die meisten Dateien können wie ganz normale Dateien gesichert werden. Wie auch immer, da sind lediglich einige kleinigkeiten zu beachten.

Das erste ist, um paranoid zu sein, niemand sollte weder CVS während der Sicherung verwenden oder noch sollte das Sicherungsprogramm CVS wärend dessen sperren. Um nun die Verwendung von CVS zu verhindern, können Sie das einloggen auf den Rechnern unterbinden, die einen Zugriff auf das Repository besitzen, den CVS--Server beenden oder änliche Mechanismen verwenden. Die Details hängen vom eingesetzten Betriebssystem und wie CVS installiert ist ab.

The first is that to be paranoid, one should either not use CVS during the backup, or have the backup program lock CVS while doing the backup. To not use CVS, you might forbid logins to machines which can access the repository, turn off your CVS server, or similar mechanisms. The details would depend on your operating system and how you have CVS set up. To lock CVS, you would create `#cvs.rfl' locks in each repository directory. See 10.5 Several developers simultaneously attempting to run CVS, for more on CVS locks. Having said all this, if you just back up without any of these precautions, the results are unlikely to be particularly dire. Restoring from backup, the repository might be in an inconsistent state, but this would not be particularly hard to fix manually.

When you restore a repository from backup, assuming that changes in the repository were made after the time of the backup, working directories which were not affected by the failure may refer to revisions which no longer exist in the repository. Trying to run CVS in such directories will typically produce an error message. One way to get those changes back into the repository is as follows:

  • Get a new working directory.

  • Copy the files from the working directory from before the failure over to the new working directory (do not copy the contents of the `CVS' directories, of course).

  • Working in the new working directory, use commands such as cvs update and cvs diff to figure out what has changed, and then when you are ready, commit the changes into the repository.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Sun Aug 26 19:41:04 UTC 2001 © 1999, 2000, 2001 by Manual Translation Project webmaster@manual-translation-project.org