SuiteCRM backup and restore

A SuiteCRM backup is only useful if the database, instance files and uploaded documents can be restored together and the restore has been tested. This page explains what to back up, how to test restores and what to capture before an upgrade.

On this page

What a SuiteCRM backup must capture and when teams need a plan

A usable SuiteCRM backup needs three parts captured as one consistent set: the database, the instance files, and uploaded documents or object storage. If any one of the three comes from a different moment than the others, a restore can produce an instance that starts but shows broken attachments, missing records, or configuration that no longer matches the data. Teams without a tested restore path should treat the backup as unproven until a restore has been completed on a separate host. The instance files include the configuration held in the config.php and .env files, custom code, and anything written under the upload and cache locations. Confirm with your own environment exactly where documents live, whether they sit on local disk or in S3 or Azure storage, and who owns those credentials.

Backups matter before routine work, not only after a failure. Take a fresh, complete set before every SuiteCRM minor upgrade, before patch releases that touch your customizations, before moving to a new PHP or database version, and before any migration. SuiteCRM Ltd's migration documentation advises backing up files and the database and testing on a staging instance first, and it warns that the migration may remove non-core files under the public/legacy folder, so customizations there need to be recorded before work begins. Scheduled backups cover disasters. Pre-change backups are the rollback point for a specific change, and they only work if the restore steps for that point are written down.

DeployOpen plans and tests this work inside infrastructure you control: the backup targets, retention, encryption, consistency method for the database and file set, and a scheduled restore test on staging. Before engaging any partner, ask who owns the restore runbook, how long a full restore is expected to take in your environment, and what the last successful restore test proved. Your own team can run the same plan, but the restore test should be repeated after each significant change, not only at go-live.

Which components a SuiteCRM restore depends on

A SuiteCRM instance is only recoverable when every part it depends on is captured at the same point in time. The database holds the business records, the instance directory holds configuration and custom code, and uploaded documents live on disk or in object storage, so each needs its own backup and its own restore check.

The database

The database holds accounts, contacts, cases, workflow state and most of the configuration that users change in the browser. Back it up with a consistent dump or snapshot taken while the application is quiet, and record the database engine and version alongside it. Confirm the supported MariaDB or MySQL versions against the compatibility matrix before you restore into a new server, since a mismatch can block the restore.

Compatibility matrix

The instance directory

The SuiteCRM installation directory holds the configuration files, custom code, extensions and any changes made outside the standard tree. A restore without these files gives you a working application that does not match your data or your customizations. Include the environment and configuration files that hold database credentials and application secrets, and store them with the same access controls as the backup itself.

Uploaded documents and attachments

Documents and email attachments are stored either on local disk inside the instance or in S3 or Azure object storage, depending on how the installation was configured. Confirm the storage location for your environment before you plan the backup, because a database restore without its matching files leaves records that point to documents that no longer exist. For object storage, check whether the bucket or container is versioned or replicated separately.

Sessions and caches

PHP sessions and cache folders hold temporary state that SuiteCRM can regenerate, so they usually do not need to be restored. Excluding them keeps backups smaller and avoids restoring stale state. After a restore, clear the cache and confirm that users can sign in again. Confirm the exact cache and session paths for your installed version before you write exclusion rules for the backup job.

Version and path record

A restore is only reproducible if you also record the exact SuiteCRM version, PHP version, web server user and the paths used for the instance and storage. Store this record with each backup set. Without it, a restore onto a newer or differently configured server is guesswork, and the upgrade rollback plan has nothing reliable to return to.

Backup methods and when each fits

This table compares the four backup approaches a self-hosted SuiteCRM instance can use, with the consistency each one gives and the restore work it implies. Read each row against your own storage layout, since most instances combine a database dump with file-level copies. The main takeaway is that a backup is only as good as its matching database and file set taken at the same point in time.

MethodConsistency trade-offRestore effort and when it fits
Database dump (logical export)Consistent within the dump itself, but files taken at another time can drift from itModerate. Import into a clean database, then verify. Fits every instance and is the baseline to keep.
Filesystem or volume snapshotCrash-consistent unless the database is quiesced or flushed first, so pair it with a dumpLow to moderate if the whole volume returns intact. Fits instances where the web root, config and uploads share one volume.
Object storage versioningProtects uploaded documents against deletion or overwrite, but says nothing about database rows that point to themModerate. Restore object versions and reconcile them with the database. Fits instances that store files in S3-compatible storage.
Object storage replicationCopies the latest state, so a bad delete or corruption can replicate too unless versioning is also onLow to set up a failover target, higher if you must rebuild references. Pair with versioning and off-site copies.
Application-level exportCaptures records in a portable form, but does not rebuild configuration, customizations or filesHigh. Rebuilds data into a fresh install. Useful for selected records or audits, not as a full disaster recovery method.
Snapshot of the whole host or VMConsistent only with application quiescing, and may include secrets you must protectLow for a full host restore, but restoring one component alone can break the set. Confirm with your hypervisor or platform team.

Setting up a repeatable backup and restore procedure

This sequence turns ad hoc copies into a backup routine that captures the database, instance files and documents together, can be checked, and can be restored by someone other than the person who built it. The output is a tested runbook tied to agreed recovery targets.

  1. Inventory every component and its location

    List everything that makes up the SuiteCRM instance: the MySQL or MariaDB database, the SuiteCRM 8 application directory with its configuration and environment files, the upload and document storage (local disk or S3 or Azure object storage), the PHP session location if it was moved, and any web server or TLS configuration that is specific to the host. Record where each item lives, who owns it and which service writes to it. The owner of this inventory is usually the platform or IT operations lead, with the SuiteCRM administrator confirming the application side. It is done when every writable location appears in the list and the team can point to each one on the running system.

  2. Agree retention and recovery targets with the business

    Ask the business owners how far back they need to restore, how much data loss is acceptable after an incident and how long the CRM can be unavailable before sales or service work stops. Write these as retention periods, a maximum data-loss window and a restore expectation, and get sign-off from the people who own the risk. Confirm whether legal or regulatory holds apply to CRM records and attachments, because those can change how long copies must be kept. This step is complete when the targets are written down, approved and linked to the backup schedule that follows.

  3. Schedule consistent backups of database and files

    Set one backup window that covers the database dump, the application configuration and the document store, and record the exact commands, credentials source and destination for each. Use a database tool that produces a consistent snapshot of the InnoDB tables, and copy file storage on the same run so the two sets describe the same moment. Store the job definitions in version control with the rest of the host configuration. It is done when a scheduled run has executed successfully and its log shows each component written with its start and end time.

  4. Quiesce writes during the copy when needed

    Decide whether the backup can run while users are working. If the team cannot accept inconsistent records or documents being written during the copy, put SuiteCRM into maintenance mode for the length of the database dump and file copy, or stop the Messenger worker and scheduler jobs that write to the database. Document how maintenance mode is enabled and disabled, and who is allowed to do it. Confirm with a test run that background jobs resume cleanly afterwards. This step is complete when a backup taken with writes paused has been checked against the logs for any job that started during the window.

  5. Store copies outside the primary host

    Send each backup set to a location that survives loss of the application server, such as a separate backup host, a different storage account or an object storage bucket in another failure domain. Encrypt the archives in transit and at rest, and keep the encryption keys and database credentials in a secrets store that is not on the same host as the backup files. Apply immutability or versioning where the platform supports it, and confirm that the access policy does not let the application server delete its own backups. It is done when a restore can be started from the off-host copy alone.

  6. Verify completion, integrity and point-in-time match

    After every run, check that the job exited successfully, that the archive sizes fall within the normal range for the instance and that checksums were recorded at creation and match on retrieval. Confirm that the database dump and the file snapshot share the same timestamp or sit within the same quiesced window, and check that the dump contains the SuiteCRM tables and the expected row counts for a sample of core modules. Alert the operations owner when any check fails. The check is complete when a failed or incomplete run produces an alert rather than a silent gap.

  7. Test restores on staging and document the runbook

    Restore the latest set into a separate staging environment built to the same SuiteCRM 8 version and PHP, MariaDB or MySQL and web server versions as production, and confirm that login works, the scheduler and Messenger worker run, and sample records and documents open. Record the steps, commands, expected output and the people who can approve a production restore in a runbook kept outside the server being protected. Run the restore by someone who did not write the procedure, and update the runbook with anything they had to work out. This step produces a tested runbook that is the basis for the backups taken before each SuiteCRM upgrade, and the staging result should be repeated whenever the procedure changes.

Testing restores on staging before you trust them

An untested backup is not a recovery plan. A backup job that reports success only shows that files and a database dump were written somewhere. It does not show that a SuiteCRM instance can be rebuilt from them, that the database and the file system still match each other, or how long the rebuild will take when someone is waiting for it. Treat the first full restore as the test that decides whether your backup design is acceptable, and repeat it on a schedule, not only when something has already gone wrong.

Restore the most recent backup set into a staging SuiteCRM instance that runs the same SuiteCRM version and PHP, web server and database versions as production. Matching the version matters because the migration guidance in the SuiteCRM migration documentation tells you to test on staging first, and a restore is the same kind of change to your environment. Keep staging on a separate host with its own database, its own .env values and outbound email turned off or pointed at a sink, so that restored scheduled jobs cannot send mail to real customers or write back to shared integrations. Record the exact restore steps as you go, because the notes become your runbook.

Verify the restore against a checklist rather than a quick page load. Log in with a named account and confirm that the role and team assignments came back. Compare record counts on accounts, contacts, opportunities and cases with the production figures taken at the moment of backup. Open several documents uploaded to Documents, including one older than a year, to prove the files, not only the database rows, were restored. Check that the scheduler widget shows jobs running on staging and that a test email is delivered through the configured mail route. Finally, write down the elapsed time for each stage and the total. That figure, not an estimate, is what you will need when you plan the recovery window and when you ask a partner to quote an incident response.

How the backup set and staging restore fit together

The flow starts at production SuiteCRM, which has three parts to capture: the database, the instance files, and uploaded documents held in local storage or object storage. Those three go into one backup set that is copied off the host before anything else happens. The restore path is separate: the backup set is restored to a staging instance, where you verify that logins, documents and scheduled jobs work. Only after that check should any production action, such as an upgrade or a migration, begin. Confirm that the copy off-host is actually readable from staging, because an unreadable backup is not a backup.

Backup set flows off-host, then restores to staging before production changes.

Protecting backup data and access

A SuiteCRM backup holds the full customer database, uploaded documents, and the configuration that contains database and mail credentials, so it is as sensitive as the live system. The cards below cover the controls that keep those copies protected and limited to the people and systems that need them. Each one should be decided and written down before the first backup job runs.

Encrypt copies at rest and in transit

Every backup copy should be encrypted on the storage that holds it and whenever it moves between the SuiteCRM host, the backup server and any offsite target. Check whether your backup tool encrypts with keys you control, and confirm where those keys are stored. Encrypt the database dump and the instance files, including the uploaded documents, not only the object storage bucket. Test that an encrypted backup restores on staging before you rely on it.

Restrict who can reach backup stores

Backup repositories, buckets and mount points should be readable only by the backup service account and a named restore group. Review access to the SuiteCRM web root, the snapshot storage and any shared file server where dumps are copied. Record who can list, download or delete backups, because a copy with customer contact data is a disclosure risk even when the live CRM is locked down.

Separate backup credentials from the application

The account that writes backups should not be the same account SuiteCRM uses to run, and it should not have rights to change the live database. Give the backup job its own database user with read and dump privileges, and its own storage key with write-only or append-only rights where the platform allows. Keep these credentials out of the SuiteCRM config files so a compromise of the web application does not expose the backup store.

Handle secrets inside backups

A SuiteCRM instance file set includes a configuration file with the database password, mail and OAuth credentials, and any integration keys. Decide whether those secrets are excluded from routine copies, stored in a vault and re-injected at restore, or kept in the backup under the same encryption controls. Whichever you choose, rotate the database password and integration secrets after a restore that went to a different environment, and confirm that staging copies do not hold production credentials.

Set retention from the data you hold

Retention should follow the categories of data in the CRM, such as contact records, support cases, consent history and documents, and the obligations your organization has for each. Define how long daily, weekly and pre-upgrade backups are kept, and when deleted customer records must also disappear from old backup sets. Ask your legal and compliance owners to approve the schedule in writing, since a backup kept longer than the live record can extend exposure after a deletion request.

Questions teams ask before backing up SuiteCRM

How long does a SuiteCRM backup and restore project take?

No duration figure is supplied for this work, so the honest answer is that it depends on the environment and the agreed scope. The main drivers are the size of the database, the number of uploaded documents and the storage backend holding them, how many restore tests are planned, and whether the backup job and the restore runbook already exist. Ask any partner to state the duration in the written scope, with the environment assumptions listed beside it, so you can check each one against your own instance.

What drives the cost of backing up SuiteCRM?

Cost follows the amount of work in your environment, not a fixed package. The main drivers are the instance size, the number of document files and their total volume, the storage backend (local disk, network storage or object storage), how many environments need backups, and how often restores must be tested. One-time work includes designing the backup scope, configuring jobs and writing the restore runbook. Recurring work includes monitoring backup jobs and running periodic restore tests. Ask for a quote that separates these two groups.

What does the client need to provide for the backup work?

The client provides access and decisions, and the partner cannot start without them. Typical inputs are administrative access to the SuiteCRM host, database and file storage, a staging instance where restores can be tested, a change window for any work that touches production, and the backup target with its retention and access rules. Confirm with your team which storage location is approved for backup copies and who signs off on restore tests before the scope is agreed.

Can an internal team back up SuiteCRM without outside help?

Yes, a competent internal team can run backups without a partner, provided it covers the database, the instance files and the uploaded documents or object storage together. The usual gap is not the first backup but the restore: teams often never test a restore on staging. Before deciding, check whether your team can rebuild a SuiteCRM instance from backups, can restore documents to the right location, and has time for regular restore tests. A partner is most useful for the design, the runbook and the first verified restore.

What should be backed up before a SuiteCRM upgrade?

Before any upgrade, back up the database, the full SuiteCRM instance files including configuration and customizations, and the uploaded documents or object storage. The SuiteCRM migration documentation advises backing up both files and database and testing on a staging instance first, because a migration may remove non-core files under the public/legacy folder. Keep the pre-upgrade copy until a restore test on staging has succeeded and the upgraded instance has run through your acceptance checks.

How often should we test a SuiteCRM restore?

Restore testing frequency is a policy decision, so set it with your risk owner rather than adopting a default. Test a restore at least after the backup design changes, before any upgrade, and on a schedule your recovery objectives require. Each test should rebuild the database and files on a staging instance, check that users can sign in and that documents open, and record the time it took. Ask any partner to include the number of planned tests in the written scope.

Do backups of SuiteCRM affect data privacy or compliance?

Yes, backups hold the same personal and commercial data as the live system, so they fall under the same access, encryption and retention rules. Confirm with your compliance team where backup copies are stored, who can read them, how long they are kept and how deleted records are handled in older copies. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications, and independent auditors make that determination.

How DeployOpen scopes and delivers SuiteCRM backup and restore

DeployOpen plans, builds, tests and documents backup and restore for self-hosted SuiteCRM inside your own infrastructure. The work starts with a written scope covering the database, instance files and document storage, and ends with a restore you have proven on staging and a runbook your team can follow.

How we scope

  • We confirm your SuiteCRM version, database engine, file storage location and whether documents sit on local disk or object storage.
  • The written scope names the backup targets, retention periods, restore objectives and the staging environment used for restore tests.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, and a quote follows from that scope.

How we build

  • We configure consistent database and file backups, with the upgrade backup steps built into the same procedure rather than kept separate.
  • Each restore path is tested on a staging instance, including a full rebuild from backup and a check that logins, documents and workflows work afterward.
  • We review customizations and non-core files so backup scope covers what your instance needs, including the public/legacy folder after a migration.

How we hand over

  • You receive a runbook covering backup schedules, restore steps, pre-upgrade backup checklists and the named owner for each step.
  • Restore test results are documented with the date, the backup used, the steps taken and any gaps found and fixed.
  • Your team is walked through a supervised restore so the procedure has been run by the people who will run it in an incident.

How we support

  • Ongoing support, periodic restore testing and backup monitoring are available as a retainer, scoped in writing.
  • Before each SuiteCRM upgrade, we can repeat the backup and restore check against the new target version on staging.
  • Confirm with us which backup retention and off-site copy rules your regulators or internal policies require before the scope is signed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.