Save a copy of your TeamForge 5.3 site data
to a location where you can quickly retrieve it to your TeamForge
5.4 site.
Note: This backup method requires shutting down your site briefly. If you
cannot tolerate a shutdown, you might consider another backup/restore method, such
as the NetApp Snapshot utility.
-
Stop the TeamForge application server and the
Apache server.
-
/etc/init.d/collabnet stop
-
/etc/init.d/httpd stop
-
Back up your PostgreSQL database.
- sudo su - postgres -c '/usr/bin/pg_dumpall > /var/lib/pgsql/backups/ctf53.dmp'
Note: If your database is running on a separate machine from your application server, run this command on the database machine.
-
Copy the following data directories to a safe location:
Directory |
Contents |
/opt/collabnet/teamforge/var |
User-created data, such as artifact attachments |
/opt/collabnet/teamforge/svnroot |
Subversion source code repositories |
/opt/collabnet/teamforge/sf-svnroot |
Subversion repository for branding data |
/opt/collabnet/teamforge/cvsroot |
CVS source code repositories (not present on all sites) |
Important: To make sure you can use the directories later, use the
"preserve permissions" flag when copying them. A command to copy them all at
once will look like this:
-
cp -Rpf /cvsroot /svnroot /sf-svnroot
/opt/collabnet/teamforge/var /tmp/backup_dir
-
Stop PostgreSQL.
-
/etc/init.d/postgresql stop