Restore backed-up CollabNet TeamForge data

Use the restore-data.py utility to bring back site data that has been backed up.

  1. Prepare the directories where the restored data will go.
    1. Check that these directories are present:
      • /opt/collabnet/teamforge/var/
      • /sf-svnroot
      • /svnroot
      • /cvsroot
    2. If any of the directories don't exist, run these commands to create them:
      • ./install.sh -a -V
      • ./bootstrap-data.sh
    3. Remove the database created by the bootstrap command.
      • su postgres
      • dropdb <DBname>
      • dropuser <Username>
      • Exit
  2. Stop the CollabNet TeamForge application server.
    • /etc/init.d/collabnet stop
  3. Run the restore script.
    • cd /opt/collabnet/teamforge/runtime/scripts
    • ./restore-data.py --source=<path/to/data/backup>

    where <path/to/data/backup> is the directory to which you backed up the data with the backup-data.py script.

    CollabNet TeamForge unpacks the backed-up Subversion and CVS repositories, the data directory, and the CollabNet TeamForge database.
  4. Restart CollabNet TeamForge .
    • /etc/init.d/collabnet start