Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Backing up everything you need to leave

What a complete backup of an Exponential site contains, so a public body can hold its own copy and leave a supplier at any time - database and files taken together, settings, generated keys, code, audit records - and…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/procurement/exit-plans/backing-up-everything.md

On this page

Backing up everything you need to leave

This page is for the project manager who wants the public body to hold its own complete copy of its site, and for the administrator who checks it. A backup kept only by the supplier does not help when the supplier is the problem. The contents come from Backups: what to back up and 10.9 Backups and restore.

Contents

  1. A backup is two halves
  2. The complete list
  3. Keys that cannot be recreated
  4. Taking a consistent copy
  5. Holding your own copy
  6. Checking the copy

A backup is two halves

"A backup is the database and the files, taken at the same moment." The database holds content, users, roles and versions; the files hold uploads, settings and code. One without the other cannot rebuild the site.

The complete list

ItemPath or sourceWhy
Databasethe engine's dump toolcontent, users, roles, versions
Uploaded filesvar/storage/, var/<site>/storage/images, documents, media
SQLite database file (if SQLite)var/storage/sqlite3/ via SQLite's online backupthe database itself
Installation settingssettings/override/credentials and generated keys
Siteaccess settingssettings/siteaccess/each site's settings
Custom extensions and designstheir Git repositoriesyour code
PHP-level configurationconfig.php, config.cluster.php, config.env.php when presentenvironment
Audit trailvar/<site>/log/audit/ with archives and signed manifestsevidence of who did what
Composer filescomposer.json, composer.lockrebuild vendor/ at the same versions
Velocity configuration (if Velocity)/etc/vc or var/vc/qbix/etcengine settings and certificate keys

Leave out caches (var/cache/), class maps (var/autoload/), vendor/ and temporary files: they are rebuilt.

Keys that cannot be recreated

FileHoldsIf lost
settings/override/audit.ini.append.phpaudit signing and pseudonym keysexisting audit records can no longer be verified
settings/override/mailpreferences.ini.append.php[SecretSettings] TokenSecretevery unsubscribe link already sent stops working
Velocity ssl/ directorycertificate private keysHTTPS on Velocity must be set up again

See Keys and secrets handover for how to transfer them safely.

Taking a consistent copy

Maintenance mode keeps database and files in step:

php bin/php/maintenance.php on --message="Back soon" --until=30m --allow-root-user
# database: the engine's dump tool
tar czf files-<date>.tar.gz var/storage settings/override settings/siteaccess
php bin/php/maintenance.php off --allow-root-user

On SQLite and MySQL with InnoDB the database dump alone is consistent without maintenance mode; maintenance mode makes database and files agree.

Holding your own copy

  • Agree in the contract that the supplier delivers a complete backup to you at a fixed interval and on request.
  • Store it in a place the supplier cannot reach or delete, encrypted, with access limited to named roles: it contains credentials and personal data.
  • Keep it under your retention rules; delete old copies as those rules say.

Checking the copy

  • To do: Every item of the list above is present.
  • To do: The dump restores on a test machine and the site starts (Restore and restore tests).
  • To do: Images on the restored site display (files and database agree).
  • To do: ./console exp:audit verify reports the chain intact on the restored copy.
  • To do: The date of the last successful check is recorded in the exit plan.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x