3CXBackup Restore Troubleshooting
This article helps you recover from Backup and Restore Errors including some tips to make this operation quick and seamless. When a new major version is released, it is recommended to install the latest version. Here is a procedure to do this.
- The option “Voice prompts and music on hold” should be enabled in the 3CX backup interface. This will ensure that all your custom and system prompts together with voicemail intro-prompts are fully backed up and eventually restored. As a 3CX Administrator, it would be good practice to delete any prompts that you are not using in your 3CX configuration, maybe customized prompt-sets which were downloaded but never used, some old IVR’s in the system etc. When an IVR is deleted from the system, the associated prompt file that it had assigned to is not removed from the system. We do this purposely to avoid having to make the user re-record it again.
- It would be a good idea to configure Voicemails in your extensions with the option to “send the voicemail to the extension’s email address and delete from mail box”. This way you will not have voice-mail clutter on the server. With this we have automatically reduced the backup size by 20%.
- If your business depends on Call recordings, where each call must be recorded, then here we need to take measures. In Version 8 there is a feature to record Call recordings in a different location. This is in Settings, General , global options tab, “Recording Path”. Configure the recording path to another drive or location used for data example: E:\PhonesystemRecordings. Lets us not forget that each minute of recording costs you 1 Mb of disk space approximately. If you have 500 extensions all set to recording and each of these extensions spend 2 hours on the phone constantly every day this means that you have to allocate 60Gb of space. If you try and make a backup and include all these recordings, the backup will become huge and will take a lot of time. Therefore if you configure the recording path, you will not need to backup recordings. This will make the backup process faster.
- Call History: This should be backed up with each backup. However at one point it would be a good idea to open the call reporter, Export the logs of 6 months ago for example to pdf or excel format and then delete those call logs from the database. The next version will have an option in the Call Reporter to delete the call logs either by date or delete all call logs. This will keep the the most often populated tables clean and organized.
- After the above points have been reviewed, you are ready to take a backup.
- After the backup is complete, check for any notifications or error messages that have been generated. If you encounter an error, do not proceed with the removal and installation of 3CX because that error will be reflected in the new update. Contact 3CX support on this.
- See below for a list of error notifications that can be generated during the backup and restore procedure.
- If the backup operation is successful, Un-Install the 3CX Phonesystem, Download and install the latest version and restore the backup from the 3CX Wizard. This can be easily done in not more than 10 minutes.
When the Restore is complete, your pbx is ready to use. The first thing you should do is to log into the management console and click on Server Activity log. The starting point of the pbx is crucial. Here you need to confirm that
- License is activated
- Local Ip addresses are recognized by the server and
- Confirm that Stun resolution is sent and resolved
- Confirm that all the External endpoints like Bridges, Tunnel connections. PSTN gateways, Voip Providers System extensions and extensions are registered. System Extensions should be the first to register. After that the extensions will start to register. How fast extensions or external entities register depends on two main factors:
- The re-registration time set on the phones (optimum time for re-registration is 5 minutes. (300 seconds)
- The time from the moment that the backup was taken, to the moment the backup was restored on the new version and services started. When the backup is taken, it assumes that you are either taking a backup for storage and roll back reasons or that you are in the process of moving on to a newer version. In both cases, it takes a backup of the PBX’s current cached registrations. This is done so if the restore is done immediately, (within the next 15-30 minutes) the PBX’s cache will be pre-populated with these registrations and this will speed up registrations of Bridges, Tunnel connections, and extensions. This is done to inform the new updated PBX core of its connected peers.
List of things not to do
1) Do not in any way extract and then re-package a backup zip file.
2) Do not modify the XML file in the Backup package – this is the file that contains all the entities with their distinguished name in the 3CX Phone system. If this file is modified, the restore will be broken.
3) Do not add files in the backup package.
List of errors and their meaning:
The below is a list of the errors or notifications that can occur during a 3CX backup or restore procedure.
- Backup failed because some of the files couldn’t be backup – maybe some files are still in use by the system (Maybe a recorded call still recording, a voicemail still being accessed). It is important that the backup is made when the pbx is idle.
- Prompt set information was restored. To avoid errors in the IVR and voicemail sessions, the new prompts were added in English. Please consult the 3CX Wiki, Documentation, General section for more information – This is a message that is generated from a Version 7 backup to a version 8 restore. Since we added more voice-prompts in Version 8, we had to avoid blank gaps in the IVR or Voicemail when users restore their old Version 7 Prompt sets. Therefore In version 8 the new prompts are added in English. This will reduce prompts not playing, gaps in the audio stream and errors in the IVR session.
- Some database objects could not be created.Please look over the Db list to see the failed objects. For more details please check the following log files: 3CxBackupAndRestore.log 3CXConfService.trace.log – Contact support when this message is generated. Attach the backup file and also generate support information.
- Restore failed because some of the files couldn’t be restored – Take a backup and contact support. Attach backup and support information.
- Corrupted archive. Please select another one – The backup package is corrupted. This only happens when you modify the package manually.
- The connection to the database was refused – If you see this error close the backup, stop all 3CX Services. Then start the 3CX Database service, followed by the configuration service.
- Files backup failed because the provided path is invalid – the path where the backup was has changed. You are either entering a wrong path or saved the backup file somewhere else. Could also be that the path cannot be accessed if it is on a remote location.
- Could not backup the call history because the database is not connected – this means that there was a healthy connection with the database at first but the connection is no longer there during Call history restore/backup. In this scenario, exit the 3CX backup application, restart all the services and start the 3CX Backup and restore again. If this does not help a machine restart is required.
Backup Version Information
Between each 3CX Phone System major release we make and another a lot of updates, new features and bug fixes are developed. This means it is only feasible for us to support backups from the previous version. If a user has a backup of a Version 6.1 3CX Phone System, this backup can be restored on 3CX Version 7 but not on 3CX Version 8. Backups from one version to another are supported in sequence. 3CX Phone System version 8 accepts Backups taken only from version 7.1. Older backups will be accepted in the backup and restore however there is no guarantee that the data will be restored in full. Again this is because of the new features that are added.
Backup and Restore from the Command prompt
You can also trigger a backup or a restore using the command line. This is very useful if you want to trigger a backup/restore using windows scheduled tasks.
Performing a full backup of the system (runs in the background and exits after it is complete)
>3cxbackup.exe hidden backup c:\backupNov09.zip /callrecordings /voicemails /voiceprompts /callhist /exit
This will start a backup process in the background (hidden) and will backup up: call recordings, voicemails, voiceprompts, and call history details. It will create the backup file in the following location: C:\, it will name the file backupNov09.zip and it will automatically exit the process after this is complete. Note: The switches: /callrecordings /voicemails /voiceprompts and /callhist can only be used in the backup procedure only. The Restore procedure needs no switches because it restores what you have backed up earlier.
Restoring a backup:
>3CXBackup.exe restore c:\backupNov09.zip
Accessing help options for Backup and restore command line
>3CXBackup.exe -h
This will show the list of options that you can input in the backup and restore utility from command prompt.
[...] See the article here: 3CXBackup Restore Troubleshooting [...]