Back up the whole installation and plan a restore
Use this guide to prepare for a server failure or the loss of Obelisk data. A complete backup must let you recover the application, settings, call history and recordings you want to keep. It is a server backup procedure to arrange with whoever manages FreePBX and the database; the configuration backup available in Obelisk covers only part of it.
Choose the backup for your situation
For example, before changing user permissions you can export the configuration from Obelisk. To recover after losing the server disk, you also need the database and files listed below. Keep a protected copy outside the server: a backup on the failed disk would be lost with it.
| What you need | What to use | What it covers |
|---|---|---|
| Undo changes to users and settings | Configuration backup from Obelisk | Supported settings and user accounts. It excludes call history, audio and the license. |
| Recover from a server or disk failure | Complete server, database and file backups | The installation and the data actually included in your backup. |
| Recover an interrupted update | The copies saved for that update | The previous database and affected files, following that update’s recovery instructions. |
| Retrieve files after SSH uninstall | The private archive created by the guided uninstall | Archived website files and configuration. A separate SQL backup is still needed for the database. |
What a complete backup must contain
Give this checklist to the person responsible for server backups. Use the actual paths and database names from your installation. The paths below are defaults or locations reported by the installer.
Obelisk database
Save the data and the SQL objects that process it: views, stored procedures, events and triggers. Record the database definition, SQL accounts and permissions as well. Ask the database administrator to verify that the backup tool includes these objects; exporting tables alone is insufficient.
Application and private configuration
Copy the installed Obelisk folder, including kernel_settings.php, the license and the configured 2FA encryption key. Also save the private update profile under /etc/obelisk, if present, with its original owner and permissions. These files contain access information: protect the backup accordingly.
Installer files and scheduled jobs
Keep the complete extracted installation kit, the private state folder reported by the installer under /var/lib/obelisk-installer/ and /etc/cron.d/obelisk. The state folder records which operations have completed and is needed to resume interrupted maintenance. The installation ZIP alone does not contain this installation-specific information.
Recordings and FreePBX data
Back up the audio files from their actual storage location, including any separate disk or server. Continue the normal FreePBX backup and protect the source CDR and queuelog data used by Obelisk. Saving the Obelisk database does not copy audio files or replace the FreePBX backup.
Test that you can restore the backup
A backup is useful only if you can restore it. Arrange a test on a separate environment that cannot run jobs or send requests to the production PBX. Merely creating another database on the same running SQL server is not sufficient: restored SQL events could start automatically.
Restore files and database in the test environment
Use the backup tool’s restore procedure. Have the administrator restore the original SQL accounts, permissions and file permissions, and check the database details in the next section before starting Obelisk.
Check the things you will actually need
Sign in with a restored administrator, test 2FA if enabled, run Installation checks and open a known call and its recording. Check users, settings and license. An SQL import that finishes without errors does not prove that all these parts work.
Record the outcome before using the procedure in production
Record which backup was tested, which files were included and how to repeat the restore. Enable scheduled jobs only after the checks pass and the administrator confirms the correct destination. A server or installation-path change also needs the supplier’s migration procedure.
Technical details for the administrator performing the restore
The 2FA encryption key is a separate file, normally data/obelisk_2fa.key.php inside the website. Use the configured path if it differs. Without the correct key, Obelisk cannot read the saved authenticator secrets, even if the SQL backup is intact.
Keep the original database charset and collation, which control how text is stored and compared. If the SQL dump does not contain CREATE DATABASE, have the database administrator create the destination with the original settings before importing. The example below includes --comments so that stored-procedure metadata saved in SQL comments is retained.
On MySQL, also check the obelisk_routine_grants view, the SQL account that owns it (definer) and its permissions. If the destination database has a different name, the database administrator must prepare the view for that destination. The database guide explains the dedicated utility. MariaDB does not require this view.
Import the SQL backup only during the planned restore
The import can replace existing data. First preserve the current state, stop Obelisk activity and follow the recovery sequence above. Replace HOST_SQL, ADMIN_SQL, DB_OBELISK and /path/backup-obelisk.sql with the verified server, SQL administrator, destination database and backup file; change port 3306 if needed. The client prompts for the password. Use mysql as shown for MySQL; on MariaDB you can use mariadb with the same options. Do not run the example before checking the destination and dump.
Commandmysql --comments --protocol=TCP --host=HOST_SQL --port=3306 --user=ADMIN_SQL --password DB_OBELISK < /path/backup-obelisk.sql
What the uninstall archive does and does not save
The guided SSH uninstall saves the website files in a private archive, including configuration and secrets. It does not create a database dump. If you choose SQL data removal, or later confirm a clean reinstall, the deleted application data can only be recovered from your separate SQL backup.
A clean reinstall creates an empty Obelisk installation at the same path and database destination. It does not import your previous users and settings. While uninstall or reinstall is unfinished, keep the same extracted kit, its journals (files recording completed steps) and the related archives. Follow the dedicated recovery instructions before deleting any of them.
The separate manual-uninstall guide is for administrators who must remove resources themselves. That procedure does not create a backup or archive automatically. Prepare the required copies before starting it.