Use the restore-data.py utility to bring back site data that has
been backed up.
-
Prepare the directories where the restored data will go.
-
Check that these directories are present:
- /opt/collabnet/teamforge/var/
- /sf-svnroot
- /svnroot
- /cvsroot
-
If any of the directories don't exist, run these commands to create
them:
- ./install.sh -a -V
- ./bootstrap-data.sh
-
Remove the database created by the bootstrap
command.
- su postgres
- dropdb <DBname>
- dropuser <Username>
- Exit
-
Stop the CollabNet
TeamForge application server.
-
/etc/init.d/collabnet stop
-
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.
-
Restart CollabNet
TeamForge .
-
/etc/init.d/collabnet start