Backup and Restore¶
Zammad ships scripts for backup & restore in package installations which you can use in your backup strategy.
Warning
These scripts do not come with any warranty and may not work in your specific use case. This depends on the configuration and installation type of your instance.
You should always regularly test and review the functionality! If the script functionality or scope is not working for your cases, feel free to copy these to a independent location and adjust the scripts as needed.
Getting Started¶
These scripts are located in /opt/zammad/contrib/backup
. The following files
might be important for you:
Backup configuration file:
config.dist
Script for backing up your data:
zammad_backup.sh
Script for restoring your data:
zammad_restore.sh
Head over to the next section for a simple backup configuration. In Advanced Setup and Restore, you can find links to sub pages with a more detailed explanation of the scripts.
Basic Backup Setup¶
Rename/copy the
config.dist
file toconfig
.Change default parameters in the
config
file if needed. Learn more about the configuration options here.Execute
/opt/zammad/contrib/backup/zammad_backup.sh
.
Advanced Setup and Restore¶
Additional Information¶
Limitations¶
Please note the following limitations which may affect script functionality or availability:
These scripts won’t work in container and source code based installations.
They only work for PostgreSQL installations.
The backup is always a full dump (no incremental backup).
Partial backup and restore (e.g. only specific data like tickets, users) is not possible.
Switching database system is not possible. See here how to manually switch databases.
System settings (like environment variables) are not backed up.
Restore to an older Zammad version is not possible.
Do not restore backup files from custom scripts with the provided scripts by Zammad. This might cause problems.