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

Backups for one person

A backup routine one person can keep for an Exponential site - what to copy (database and files together), backups from the administration with git_manager, the command-line way for SQLite and other databases, keeping…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/individuals/running-it/backups-for-one-person.md

On this page

Backups for one person

This page is for individuals who run their own site and have nobody else to rely on for backups. A backup is two halves taken together, the database and the files, and it only counts once you have restored it somewhere (Backups, Backups and restores).

Contents

  1. What to copy
  2. Way 1: from the administration
  3. Way 2: on the command line
  4. Way 3: your host's backups
  5. Getting copies off the server
  6. The restore test
  7. A routine you can keep

What to copy

PartWhy
The database (with SQLite, the file under var/storage/sqlite3/)All content, users, settings stored there
var/storage and var/<site>/storageUploaded images and files
settings/override, settings/siteaccessYour settings; they contain passwords, so keep backups private
Your own extensions and designsIf they are not in a Git repository

Caches are rebuilt by themselves and need no backup.

Way 1: from the administration

The git_manager extension (in the root composer.json) has a backup manager at Setup > Backup (/git_manager/backup) (git_manager):

TypeContainsUse
Full Site BackupSQL dump, var/ archive, site files (extension/, settings/, config.php)Rebuilding on a new server
DB + Files captionSQL dump and var/ archiveThe regular backup

Optionally tick Encrypt backup files (needs GnuPG on the server). Its requirements list mysqldump for database backups; on SQLite or PostgreSQL, check that the database part is in the archive, or use way 2 for the database.

Way 2: on the command line

If you have a shell, the builder's page gives the exact commands (Taking a backup). The short version:

  1. Optionally switch maintenance mode on, so database and files agree.
  2. Back up the database with its own tool. For SQLite: sqlite3 var/storage/sqlite3/exponential.db ".backup '/backup/db.sqlite'" (use your database file's name). Never copy a live SQLite file with a plain file copy (SQLite for hosts).
  3. Archive var/storage, settings/override and settings/siteaccess.
  4. Maintenance mode off.

Put it in a small script and a cron job so it does not depend on remembering.

Way 3: your host's backups

Many hosts back up accounts. Find out (What to ask your host): how often, how long they are kept, whether you can download one, and how a restore is requested. A host's backup is a good second copy; do not make it your only one.

Getting copies off the server

A backup on the same server dies with it. Copy at least one generation elsewhere: your computer, an external disk, a storage service. Encrypt it if it leaves your control; a backup of a family or club site is a copy of everyone's data and the settings' passwords.

KeepExample
RecentOne per day or week, a few generations
OlderOne per month for a few months
Before every updateOne, kept until the update has proved itself

The restore test

At least once, and after every major update, restore a backup on another machine (your laptop is fine) and check the front page, a deep page, an image, a download, a sign-in and a form (The restore test, Restore test (customers)). Write down how long it took.

A routine you can keep

  • To do: Automatic backup (way 1 or 2) at a fixed interval.
  • To do: A manual backup before every update or big change.
  • To do: Monthly: copy the newest backup off the server; delete old generations.
  • To do: Twice a year: restore test.
  • To do: Your deputy (family member, club volunteer) knows where the backups are.

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