Backing up and restoring a package-installed Zammad: what your team must own
Backups of a self-hosted Zammad are your team's responsibility, not the vendor's. Your helpdesk holds customer tickets, agent notes and attachments that must survive a failed host or a bad upgrade. Zammad ships backup scripts that cover the core data, but a backup only counts once you have restored it somewhere else and confirmed that tickets, attachments and logins work. Zammad gives no warranty on the data, so the restore test is the evidence you need, not the script's exit code. Treat the schedule for restore tests as part of the service, with a named owner and a record of each run.
Plan backup work before go-live, before every upgrade, and before any move to a new host. Before go-live, confirm where the backup configuration lives, where copies are stored and how long they are kept. Before an upgrade, take a fresh backup and confirm you can restore it onto a spare host, because an upgrade that goes wrong is the most common reason to need one. When moving to a new host, the restore procedure becomes the migration path, so the same runbook should be rehearsed there. Ask your Zammad partner or internal team to confirm which Zammad release and PostgreSQL version your package install uses, since both affect restore steps.
Decide early what your recovery must cover: the database, the attachment storage, the configuration file, and the search index. The search index can be rebuilt after a restore, but that rebuild takes time and degrades search while it runs, so plan for it in the restore window. Record who can start a restore, who approves it, and where the off-host copy sits relative to the production host. An off-host copy that shares the same storage account, credentials or failure domain as the server it protects will not help when that failure happens.
Backup options for a package-installed Zammad and when each fits
This table compares the built-in Zammad backup script with pigz compression, filesystem snapshots of the data directory, and database-only dumps. Read each row as a trade-off: what the option captures, how much work a restore takes, and which team should own it. The main takeaway is that only a restore you have tested counts as a backup, whichever option you choose.
| Option | What it captures | Restore effort and who should choose it |
|---|---|---|
| Built-in backup script with pigz | Database dump plus the files Zammad stores on disk, compressed with pigz for faster compression on multi-core hosts | Moderate. Restores follow Zammad's documented steps, so it suits teams that want a Zammad-aware backup they can run and test on package installs |
| Filesystem snapshot of the data directory | A point-in-time copy of the disk or volume holding attachments and local files, but not a consistent PostgreSQL state unless the database is quiesced too | Low to moderate for infrastructure teams with storage tooling. Crash-consistent copies can be unreliable without a verified restore, so pair them with a tested procedure |
| Database-only dump | PostgreSQL content such as tickets and users, without attachment files or configuration on disk | High. Attachments and local configuration must be recovered separately, so it suits teams that already back up the file layer by another route |
| Snapshot alone, without a restore test | Whatever the storage layer captured at the moment of the snapshot | Unknown until tested. Do not treat snapshots as sufficient without a verified Zammad restore on a separate host |
| Off-host copies of any option | A second copy stored outside the Zammad host, such as another site or object storage you control | Adds transfer and retention work. Confirm encryption, access rights and retention with your security team |
| Scheduled restore tests | A restore into a separate host or environment, followed by a check that agents can log in and tickets and attachments open | Recurring effort. Zammad provides no warranty, so this test is the evidence that the chosen option works for your data |
What a full Zammad dump includes and what it leaves out
A full Zammad backup protects two things: the PostgreSQL database that holds tickets, users, settings and history, and the stored files such as attachments when they are kept on the file system. Restoring those two is what brings a helpdesk back. Everything else around the application is outside the dump and has to be protected on its own track: the configuration and secrets that Zammad reads at startup, the reverse proxy configuration, TLS certificates and their private keys, the Redis instance used for realtime websocket traffic, and any operating system settings your package install relies on. If any of these are lost, a restored database can still be unusable, so list each one with an owner, a location and a backup method before you rely on the script.
The Elasticsearch index is the item most often misunderstood. It is not restored from the dump. After a restore, you rebuild the search index from the restored data, which means search will be degraded or incomplete until the rebuild finishes. Plan for that window in your restore runbook, and confirm with the Zammad documentation for your version how long the rebuild is expected to take on your data volume and hardware. Also confirm whether your release notes require an index rebuild after an Elasticsearch upgrade, since that changes when you will need the procedure.
Because the exact contents of a full dump change between releases, check the current Zammad admin documentation for the version you run before you write your recovery plan. Confirm which paths and tables are included, how attachments are stored in your configuration, and whether any cache or session data is excluded. Record the answers in your runbook, and repeat the check after each upgrade, so the scope on paper always matches what the script actually writes.
Configuring the backup script, pigz and off-host copies
This sequence sets up the Zammad backup script on a package installation so that compressed archives land in a directory with enough space and a copy reaches a second machine or object store. Each step closes with a check you can run before you rely on the backups.
Review the backup script and its config file
Locate the backup script and the configuration file that ship with your Zammad package installation, and read every option before you change anything. Keep a copy of the original file so you can compare later. Confirm the paths and option names against the Zammad documentation for your installed version, because the layout can change between releases. Write down the backup directory, the compression setting and the database and file storage options the script reads. Check: you can name each option you intend to set, and the file parses without errors.
Choose a backup directory with enough space
Pick a directory on a filesystem separate from the application's data, where the archives will be written. Size it against your current database and attachment storage, plus room for the number of archive generations your retention plan keeps. Check the disk usage of the Zammad data paths to get the current figures. Make the directory owned by the account that runs the backup and keep it out of world-readable permissions, because archives contain ticket content. Check: free space on the target filesystem covers your sized requirement, and a test file written as the backup account succeeds.
Enable pigz compression
Install pigz from your distribution's packages and set the backup configuration to use it for compression in place of a single-threaded compressor. pigz runs in parallel across CPU cores, which can shorten the compression phase on busy hosts, but it does not change what the archive contains. Confirm the binary is on the PATH of the account that runs the job, and install the matching decompressor on any host you might restore to. Check: running pigz with its version flag as the backup account returns a version, and the configuration names pigz as the compressor.
Run one manual backup and inspect the archive
Run the backup script by hand as the account that will run it in production, and let it finish without interruption. Then list the output directory and check that the new archive exists, that its timestamp matches the run and that its size is plausible compared with your database and attachment storage. An archive near zero bytes or far larger than the source points to a problem. Check: pigz with its test option reads the archive without errors, and the script's output ends with a success message.
Schedule the backup job with cron or a timer
Create a scheduled job with cron or a systemd timer that calls the backup script as the same account you tested with. Choose a time outside your agents' busiest hours and confirm it does not overlap with other heavy jobs on the host. Send stdout and stderr to a log file or the journal so failures are visible without anyone watching the terminal. Check: after the first scheduled run, the log shows a success line, a new archive exists with a new timestamp, and the timer or cron entry shows its next run time.
Copy each archive to a separate host or object storage
Add a copy step that runs after each backup finishes and sends the new archive to a host outside the Zammad server, or to an object storage bucket you control. Use credentials that can only write to that location, encrypt the transfer, and restrict access to the backup host. Set a retention rule for the off-host copies that your data owner has agreed to. Check: the destination listing or access log shows the new object, and its size and checksum match the local archive.
Verify the off-host copy from another machine
From a different machine, fetch the most recent archive from the off-host location and run the same integrity test you used locally. Compare its checksum with the original and confirm you can list its contents. An upload that succeeded only shows that the file arrived, so this read test is the step that shows the copy is usable. Record the archive name, date and result, and repeat the test on a schedule your team agrees. Check: the copy passes the integrity test, and its checksum matches the original.
Protecting backups that hold customer ticket data
A Zammad backup contains the full ticket history, customer contact details, attachments and the configuration that controls access. The controls below are ones your organization must design, assign and verify itself, since no backup procedure protects data on its own.
Encrypt archives at rest and in transit
Backup archives hold the database dump and file storage, so they carry the same personal data as the live system. Decide where encryption happens, whether on the host before the archive is written or in the storage target, and who holds the keys. Check that copies moving to off-host storage travel over encrypted connections and that a restore works with the keys you have actually stored, not the ones you intended to store.
Limit access to backup operators
Anyone who can read a backup archive can read every ticket and attachment in it, often including tickets that the live role model would hide from them. Restrict read and write access on the backup directory and off-host copies to named backup operators, and keep that group separate from Zammad administrators where your policy requires it. Review the access list on a fixed schedule and after staff changes.
Set retention by policy
How long backups are kept should come from your records and privacy policy, not from the default rotation in the backup scripts. Define how long ticket data may persist in backups after deletion in Zammad, how many generations you keep, and who approves exceptions such as legal holds. Confirm that expired copies are removed from every off-host location, not only from the server.
Protect the config file
The backup configuration file may contain database credentials, storage paths or tokens for remote targets. Store it with restricted permissions, keep it out of shared configuration repositories, and rotate any secret it holds when staff with access leave. Verify that the file is not copied into archives where a broader group could read it.
Log backup and restore actions
Record when each backup ran, where the archive was sent, who started any manual backup or restore, and which host received the restore. These entries show whether the control framework is working and support investigations after an incident. Confirm that logs are kept outside the backup directory, that they are forwarded to your log collector where policy requires it, and that they contain no ticket content.
Test restores on a schedule
Encryption, access and logging controls only matter if the archive can be restored, and Zammad provides no warranty for backups. Schedule restore tests to a separate host, record the result, and check that an operator can reach the keys and credentials needed without the original server. Keep a written procedure so the test can be repeated by someone other than the person who wrote it.
Zammad install docsHow backup data moves from the Zammad host to off-host storage and back
The flow starts on the Zammad host, where the backup script dumps the PostgreSQL database and copies file storage into one compressed archive in a local backup directory. A separate job then copies that archive across the trust boundary to off-host storage. A restore runs the other way: the archive returns to a test or new host, the data is restored, and the Elasticsearch index is rebuilt before anyone checks the result. Confirm encryption and access controls at the boundary.
Backup flow from the Zammad host across the trust boundary and back into a restore.
Scheduling restore tests so backups prove recoverable
A backup that has never been restored is an assumption, not a control. The cards below describe how to schedule a recurring restore into an isolated host, what to check once it is up, and how to record the result. Zammad gives no warranty on recovery, so the proof belongs to your organization.
Who owns recovery proof
Zammad is open-source software distributed under AGPL version 3, and the support terms you buy do not turn a backup script into a guarantee of recoverability. Your organization owns the question of whether a restore works, and that answer has to come from your own tests. Assign a named owner for the restore test, record who signs off on each run, and keep the results where your auditors and incident responders can find them.
Zammad on GitHubSetting the test frequency
Choose how often to test from your recovery point objective and recovery time objective, not from the backup schedule. If a day of ticket loss is unacceptable, a nightly backup still needs a restore test often enough to catch a broken dump before you depend on it. Write the chosen frequency, the objectives it serves, and the date of the last successful run into your continuity plan.
Building an isolated restore host
Restore into a host that cannot reach production mail servers, messaging services or customer-facing endpoints. A restored Zammad that polls real mailboxes or sends notifications can duplicate tickets or contact customers. Match the operating system, PostgreSQL and Redis versions to production, and block outbound email and channel connections at the network layer before the first start.
Pass criteria for each run
Define checks before each test so a restore cannot pass by simply starting. Confirm that agents and a test customer can log in, that ticket counts by state match the source for a fixed date, that a sample of attachments opens, and that a known ticket appears in search. Compare results with the production figures captured at backup time, and treat any gap as a failed test.
Search results after restore
Search results are a separate check because the search index is not a faithful copy of the database that you can assume is current. After a restore, run a set of known queries and compare the hits with expected tickets. If results are missing or stale, record that as a finding and follow the index rebuild procedure before the test is marked complete.
Recording time taken
Time each stage: retrieving the backup, restoring files, restoring the database, starting services and completing the checks. The total is your measured recovery time for that scenario, and it is the number to compare with the recovery time objective. Keep the log for every run so you can see whether the restore is getting slower as the data grows, and raise a change when it no longer meets the objective.
Questions teams ask before backing up a self-hosted Zammad
Does backing up a self-hosted Zammad cost a license fee?
No license fee applies to self-hosting Zammad, which is licensed under the GNU Affero General Public License version 3. The costs you will carry are the infrastructure to store backups, the staff time to run and test them, and any outside help you buy. If you want vendor support, Zammad sells self-hosted support subscriptions separately: Business at 2,999 EUR per year, Enterprise at 5,999 EUR per year and Corporation at 9,999 EUR per year, according to Zammad's pricing page. Those subscriptions cover the product, not your backup storage or your restore testing, so ask what each tier includes before you assume it covers recovery work.
What drives the cost of a Zammad backup and restore project?
The main drivers are the size of the PostgreSQL database, how much attachment data sits on the server, how many hosts are involved, and how often you need copies and restore tests. Costs are one-time for the first setup, the off-host storage design and the first restore test, then recurring for scheduled backup checks, storage and periodic restore tests. A larger attachment store or a second site raises storage and transfer costs. Ask any provider to price the setup, the recurring restore tests and the storage separately, and to state what happens if a restore test fails.
Can our own team set up Zammad backups without a partner?
Often yes, if you have a Linux administrator who can work with PostgreSQL, file permissions and cron-style scheduling, and someone who owns the restore test. The package install ships backup tooling, so the first setup is mostly configuration, storage planning and a documented restore. Teams usually struggle with the restore test, because a backup that has never been restored on a clean host is only an assumption. Decide who owns the test, who approves the restore runbook and who can act when the test fails before you decide whether to build this in house.
What does the team need to provide before a backup project starts?
Plan to provide the following before work starts:
- Access to the existing Zammad host, including root or sudo rights and the current package version
- Sizing information for the database and the attachment storage
- A destination for off-host copies that your security team has approved
- A spare host or virtual machine where restores can be tested
- A named owner for restore tests and a window in which tests can run without affecting agents
If the instance uses an external Elasticsearch cluster or other integrations, list them too, since they affect what a restore must rebuild.
How long does a first backup setup and restore test take?
The duration depends on your environment, so no fixed figure applies here. The main variables are the database and attachment size, how many separate hosts the restore must touch, the speed of your off-host storage, and whether your change process needs approval for each step. A single-host package install with a small database is simpler than one with separate database, Redis and search nodes. Ask any provider for a written schedule that lists the setup, the first restore test on a separate host and the follow-up checks, with the assumptions behind each step.
What does a partner scope for a Zammad backup engagement?
A written scope should name the environment and the deliverables. Expect it to cover the review of the current host layout, configuration of the backup scripts and their config file, compression and retention settings, off-host copy design, a documented restore procedure on the same and on a new host, and a scheduled restore test with a pass or fail record. It should also state what is out of scope, such as Elasticsearch rebuilds, monitoring or application-level data repair, and who handles them. DeployOpen plans and implements this work in infrastructure you control and delivers it under a fixed scope agreed in writing before work starts.
Which backup questions do engineers usually get wrong with Zammad?
The common mistakes are treating the database dump as a complete copy, forgetting attachment storage, and never restoring to a clean host. Confirm what the full dump includes and what it leaves out, including file storage and search index data, and confirm how your configuration file is protected. Check that copies are stored off the host, that the restored instance logs in with your existing identity settings, and that the search index is rebuilt after restore. Record each check in a restore test log so the next engineer can repeat it.
Does Zammad guarantee that its backups will restore correctly?
Your recovery depends on your own tests, not on a vendor promise. Zammad's backup tooling is provided as part of the open-source product, and you should verify it against your own version, configuration and storage. Schedule restore tests on a separate host, record the result and treat a failed test as an incident. Ask any provider to show you the restore test record and the checks it covers, rather than relying on a general statement about backup reliability.
Official Zammad documentation to read alongside this page
Before you touch a backup or restore, read the official Zammad software requirements page. Your restore target has to match the PostgreSQL, Redis and reverse proxy versions that the release you are running expects, and a dump taken on one host only restores cleanly onto a host that meets those requirements. Write down the Zammad version, PostgreSQL major version and Elasticsearch version on the source host, then confirm the same values on the host you plan to restore to. If the versions differ, resolve that gap first, because a restore that succeeds on the database layer can still leave the application in a state you did not test.
Next, check the release notes for the exact version you have installed, not only the latest one. Zammad publishes minor releases and security releases on its releases page, and security fixes can ship on more than one release line at the same time. Look for notes that mention database migrations, search index requirements or changes to the backup script itself. Those notes decide whether you need a search index rebuild after the restore, and whether the restore procedure you wrote for an earlier version still applies. Confirm these points with the release notes for your installed version before you schedule any restore window.
If you plan to move Zammad to a new host or to a different data source, read the official migration documentation as well. That page covers importing data from other helpdesks, which is a different job from restoring your own Zammad instance, and it is easy to confuse the two when a restore goes wrong. Keep the restore runbook separate from any migration plan, and record which official page each step relies on so an auditor or a new administrator can trace the procedure back to its source.

