Appliance Backup and Restore
Back up your Call Telemetry appliance to a .cta file, then restore it on the same appliance or a replacement server.
The archive contains the database and application secrets, along with available certificates, configuration files, media, and SeaweedFS storage. For moving one organization's configuration, use Customer Data Import and Export. For a database-only backup, use ct db backup in the CLI Reference.
Create a Backup
Run on the appliance you want to back up:
sudo ct appliance export /var/backups/
# Equivalent shorthand alias:
sudo ct backup create /var/backups/
The CLI creates a .cta archive and prints its filename and diagnostic log path. Keep a copy off the appliance so you can recover if its disk fails.
By default this is a full backup. It includes application configuration, policy history, CDRs, CMRs, CURRI decisions, Teams records, and logs. A restore of that archive reloads the saved data and refreshes materialized views, including Policy History, so those views match the restored tables.
To check the estimated database size and included files before exporting, run sudo ct appliance export --dry-run. Allow space for temporary files and the completed archive, including when uploading to remote storage.
A default standard-mode export is integrity-sealed but not encrypted. The CTAV2 envelope carries cipher: "none" and a SHA-256 digest for every chunk plus an authenticated EOF record, so tampering, truncation, and reordered chunks fail closed. The contents remain readable: the inner tar.gz, database dump, certificates, configuration, and secrets can be extracted without a passphrase. Store these archives on encrypted disks or protected remote storage.
Pass --encrypt, use --passphrase-file, or set CT_BACKUP_PASSPHRASE to encrypt the entire archive stream with AES-256-GCM and PBKDF2-HMAC-SHA-256 at 600,000 iterations. An X.509 --recipient-cert also encrypts the full stream and wraps the content key to that certificate. secure mode requires encryption.
Encryption behavior depends on the appliance security mode (sudo ct security-mode status):
- Standard mode (
standard, default):sudo ct appliance export /var/backups/produces an integrity-sealed, unencrypted archive. The CLI stores no built-in key, and no fallback key exists: leaving the passphrase blank never produces an encrypted archive. The archive is readable by anyone who obtains it, andsecure-mode import rejects it unless you pass--allow-unencrypted. Pass--encryptto prompt for a passphrase interactively, or pass--passphrase-file /etc/calltelemetry/backup.key(orCT_BACKUP_PASSPHRASE) to encrypt the full archive stream with AES-256-GCM. A recipient certificate (--recipient-cert) does the same without a shared passphrase. - Secure mode (
secureor STIG edition): Archive encryption is mandatory (enablingsecuremode on standard OVAs requires a hardware-bound Premium or Demo license; see Application STIG Hardening). Every export requires an interactive passphrase,--passphrase-file,CT_BACKUP_PASSPHRASE, or a recipient certificate, and exits with status64if none is supplied. An unattended scheduled export that has no passphrase material also fails closed with status64.
Trailing \r\n or \n newline characters in --passphrase-file are stripped automatically on both export and restore (ct appliance import / ct backup restore), so standard newline-terminated key files match interactive passphrase prompts byte-for-byte.
# Standard mode: prompt interactively to encrypt the full archive
sudo ct appliance export /var/backups/ --encrypt
# Automated or secure-mode export using a 0600 key file
sudo ct appliance export /var/backups/ --passphrase-file /etc/calltelemetry/backup.key
SFTP Backups
Test the destination, then export to it:
sudo ct backup test sftp://backupuser@storage.example.com/backups/
sudo ct appliance export sftp://backupuser@storage.example.com/backups/
backup test prompts for credentials; add --key /path/to/private-key for SSH key authentication. For unattended exports, set CT_BACKUP_PASSWORD or CT_BACKUP_KEY in the appliance's .env. Remote inspection and restore use CT_RESTORE_PASSWORD or CT_RESTORE_KEY.
SFTP verifies the remote server against /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts by default, or against an explicit fingerprint passed via --host-key-sha256 <fingerprint> (--insecure is a break-glass override permitted only in standard mode). sftp:// is the only supported remote scheme: ftp:// is no longer supported and is rejected with an error on every command. When transferring to another Call Telemetry appliance over its administrative SSH service, specify port 2222.
The archive is staged locally before upload. Leave --clean-local unset to keep the local copy: that option deletes the staged file even if the remote upload fails. Confirm the file arrived on the backup server.
Uploading an Archive to Support
When working with Call Telemetry Support on complex investigations, you can export and upload an archive directly in one step:
sudo ct appliance export /var/backups/ --upload
You can also upload an existing .cta archive using ct diag upload --file /path/to/archive.cta. See Appliance Support Upload Procedures for 50 MB chunked multipart transport, authorization tokens, and browser approval details.
Backup Options
The export above includes the full database. Add an option only when you want a smaller archive:
| Option | Leaves Out |
|---|---|
--skip-logs | Diagnostic, webhook, and audit logs, including user activity logs. Keeps policy history, CDRs, CMRs, and CURRI events. |
--skip-data | Policy history, CDRs, CMRs, CURRI events, Teams records, related rollups, and logs. Keeps application configuration. |
--skip-media | Files in the appliance's media directory. |
--skip-storage | SeaweedFS object storage data. |
--no-logs is an alias for --skip-logs. --config-only and --no-data are aliases for --skip-data. Anything left out of the backup is absent after restore.
--skip-data is the configuration-only backup. Import warns that call history was not in the archive, and it does not refresh policy history views. Those views are built from the call records the archive left out. --skip-logs keeps that call history and leaves out diagnostic, webhook, and audit logs.
ct backup export, ct backup create, and ct backup run use the same full-database default. A scheduled backup is also full unless you passed --skip-data or --skip-logs when you enabled the schedule. Run sudo ct backup schedule and enable the schedule again without --skip-data when every run should include history.
Inspect a Backup
Use the filename printed by export:
sudo ct appliance inspect /var/backups/appliance.cta
sudo ct appliance inspect /var/backups/appliance.cta --verify
Inspect shows the archive envelope and cipher, the source version, included components, data exclusions, whether the archive is encrypted, and stored checksums. Pass --verify to recompute the database/calltelemetry_prod.dump SHA-256 digest against manifest.json without restoring; import verifies every component checksum and tests the decryption passphrase before stopping services. You can also pass an sftp:// URL to inspect a remote archive.
Restore a Backup
Restore stops appliance services and replaces the target database and application credentials. Run it during a maintenance window, on the appliance you intend to restore. Back up any target data you need to keep first.
Copy the archive to the target and run:
sudo ct appliance import /var/backups/appliance.cta
# Equivalent shorthand alias:
sudo ct backup restore /var/backups/appliance.cta
Enter the export passphrase if the archive is encrypted, then confirm the restore. Import checks the archive, restores the database and included files, adopts the application secrets, and restarts services. Allow space for extraction and the restored data.
When secure mode is enabled on the target appliance, ct appliance import rejects unencrypted standard-mode archives with exit status 64 unless you explicitly pass --allow-unencrypted.
A full restore reloads the saved tables, then refreshes materialized views from those tables before services start. Policy History is included. A view built from another view is refreshed after that view, so it sees the restored data. If a policy history view cannot be refreshed, the import says so instead of reporting a clean full restore.
A configuration-only archive restores configuration only. Import warns before it continues, and it skips the view refresh. Re-export the source with sudo ct appliance export and no --skip-data when you need the call history.
You can import directly from remote SFTP storage too:
sudo ct appliance import sftp://backupuser@storage.example.com/backups/appliance.cta
For automation, export and import accept --passphrase-file /etc/calltelemetry/backup.key. Import also accepts --yes to skip confirmation.
Archive Format Compatibility
New exports use the CTAV2 archive format: the file starts with the CTAV2 magic and records format version 2.0 in its authenticated header. Compatibility is one-way:
- New builds read and restore older Format 1.0 archives.
- Older builds cannot read
CTAV2archives and fail before extracting anything. - Restore a
CTAV2archive with the build that exported it or a newer build.
Keep the exporting build's version with the archive. Record the appliance version in your backup inventory, and test the restore on a spare appliance running the same or a newer build.
Moving to a New Appliance
Use this procedure for a replacement server or an operating system change, such as CentOS Stream to AlmaLinux 9:
- Deploy a fresh appliance using the VMware, Hyper-V, or Nutanix guide.
- Check its application, PostgreSQL, and TimescaleDB versions against the archive's source versions. The version display during import does not establish compatibility.
- Restore the archive on the new appliance, keeping it isolated from production traffic until you have checked the restored configuration.
- After the checks below, stop the old appliance before assigning its IP address to the replacement. Update DNS if needed, then test routing and CDR ingestion.
The archive restores Call Telemetry data and files onto an installed appliance; it does not restore the operating system or virtual machine.
Check the Restore
sudo ct doctor
sudo ct status
Sign in and check your organizations, administrator access, policies, and integrations. Confirm call history is present if you included it, and check any certificates, greeting audio, or stored files your deployment uses. Test Cisco CallManager, CUBE, and Teams connections as applicable before switching production traffic.
Test a restore on a separate appliance periodically so you know your backups can be used for recovery.
Schedule Backups
This example backs up a full .cta archive to local disk daily at 02:00 UTC and keeps the newest seven archives:
sudo ct backup schedule enable \
--calendar "*-*-* 02:00:00 UTC" \
--target /var/backups/ \
--retention 7 \
--passphrase-file /etc/calltelemetry/backup.key
Use an existing passphrase file (0600) readable only by the backup operator, and keep a protected copy for recovery. Set --target to an sftp:// URL for remote backups, with credentials and host keys configured for unattended use. Pass --kind db (with --keep and --max-age) to schedule nightly SQL database dumps independently of .cta appliance archives (--kind cta is the default). Retention removes local .cta archives only; manage remote archive retention on the SFTP server.
The schedule uses a systemd timer that persists across reboots. A missed run can execute after startup, and runs may start up to 15 minutes after the scheduled time. If you use daily, weekly, or monthly with --time, the calendar has no timezone suffix; check the host timezone or use an explicit --calendar as above.
Run a backup now, check the next scheduled run, and read the execution log:
sudo ct backup schedule run
sudo ct backup schedule
sudo ct backup schedule log
Confirm the archive exists at the destination. Run sudo ct backup schedule disable to stop the timer, or run enable again to replace the schedule. The schedule is a full backup unless you add --skip-data or --skip-logs. Passing --skip-data makes every scheduled archive configuration-only. See the CLI Reference for the schedule options.
PostgreSQL Upgrades
For an in-place database version upgrade, follow the PostgreSQL Upgrade Guide. Take an off-appliance backup first. PostgreSQL rollback returns to the preserved pre-upgrade volume; it does not merge records written after the upgrade.
Failed Backups and Restores
Export and import print a diagnostic log path. Keep that log if an operation fails. For a remote transfer failure, run sudo ct backup test against the destination and check local disk space for staging. If a checksum check fails, retrieve an intact archive or create a new backup.
If a restore fails after services stop, check the target before sending traffic to it:
sudo ct doctor
sudo ct status
sudo ct logs db
Contact support with the failure details and diagnostic log.