In some cases we recommend that you back up all of your data, reinstall your server and migrate the data back.
Data Backup
System Configuration Files and Call Recording Configuration Files
To back up your system and Call Recording configuration files we recommend that you use our Configuration Migration tool. It contains files that may be required during the reinstallation process.
Database Backup
We recommend that you create at least two dumps of your database: An SQL dump file and an archived dump file.
SQL File:
pg_dump -U postgres callrec -f /mnt/backup/callrec.dump.sql
To verify whether the dump has been created properly, check the head and tail of the file:
head /mnt/backup/callrec.dump.sql tail /mnt/backup/callrec.dump.sql
Archived Dump File:
pg_dump -U postgres callrec -Fc -f /mnt/backup/callrec.dump.tar
Media File Backup
Copy or move your media files. Media files can be:
| Type | Extension | Default location |
|---|---|---|
| Calls | MP3/WAV | /opt/callrec/data/calls |
| Mixed video files | mp4 | /opt/callrec/data/calls |
| Unprocessed video files | recd | /opt/callrec/data/calls |
| SpeechREC indexes | idx | /opt/callrec/data/calls |
The location of your media files may differ. Find out where they are located:
Calls:
Find out where your calls are located in two ways:CLI – Run this command:
grep pathToSave /opt/callrec/etc/decoders.xml
Example of the command's output:
<Value name="pathToSave">/mnt/cluster1/calls</Value>
- Web UI – Open the server's Web UI. Go to Settings > Configuration > Decoders > Decoder Servers Configuration and find the field "Path to save recordings":

You can have many decoder servers. This directory is a local one of the specified decoder.
Unprocessed video files:
CLI: Run this command.
grep fileSrcDirectory /opt/callrec/etc/screenrec.xml
- Web UI – Open the server's Web UI. Go to Settings > Configuration > Screen Capture > Screen Capture.
Find the section "Output Files Settings":
- Mixed video files:
CLI – Run this command:
grep pathToSave /opt/callrec/etc/screenrec.xml
You will get two rows. Ignore the first. It is used for unprocessed video files. The second has the desired setting. Example of the command's output:
<Value name="pathToSave">/opt/callrec/data/recd</Value> <Value name="pathToSave">/opt/callrec/data/mp4</Value>- Web UI – Open the server's Web UI. Go to Settings > Configuration > Screen Capture > Media Encoder.
Go to the the section where your media encoders are configured. You can have many. The configured path is local for each media encoder. Fnd this field:
Reinstall your server
To install a new GQM version to your server, use the Installation Guide. To restore your data, go to the next step.
Restore the backed-up data
Configuration
If you used the Configuration Migration Tool to back up your data, go to Restoring the Configuration when Upgrading to New Hardware.
Database
Create a new database during the installation and configuration processes. To restore the old database, delete or rename the new one. Create another and restore the old dump into it. Finally, upgrade the scheme version.
Stop all Call Recording services:
service callrec stop
Rename your existing database:
psql -U postgres -c "alter database callrec rename to callrec_new;"
Create a new database:
createdb -U postgres -l en_US.UTF8 -T template0 -O callrec -E UTF8 callrec
-l is your locale.
Restore your old database dump:
pg_restore -U postgres -d callrec /tmp/backup/callrec.dump.tar
Set search_path:
psql -U postgres -d callrec -c "ALTER DATABASE callrec SET search_path=callrec, wbsc,public;"
Use the guide Upgrading the database version to upgrade the scheme version.
Media
Copy your media files (mp3, wav, recd, mp4) to the location set in your configuration.
Post Upgrade Checks and Tests
See Post Upgrade Tasks.