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

exp:upgradebackup

Upgrade backup: the backup exp:upgrade makes before it writes, on its own (database dump and settings overrides).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/upgradebackup.md

On this page

exp:upgradebackup

Upgrade backup: the backup exp:upgrade makes before it writes, on its own (database dump and settings overrides).

Script bin/php/upgradebackup.php, code in kernel/private/classes/commands/upgradebackup.php. Run it from the installation root, as the user the web server runs as:

./console exp:upgradebackup --help
./console exp:upgrade:backup --help
php bin/php/upgradebackup.php --help

Help text

Upgrade backup
Makes the backup exp:upgrade --apply makes before its first write, into
var/backup/upgrade/<time>/: SQLite a consistent copy (VACUUM INTO), MySQL/MariaDB mysqldump,
PostgreSQL pg_dump, MongoDB mongodump, and a copy of settings/override. Oracle: make one with
expdp. Passwords never reach a command line.

./console exp:upgrade:backup
./console exp:upgrade:backup --backup-dir=/srv/backup/site --format=json

Options

OptionValueHelp
--backup-dirrequiredWhere the backup goes (default var/backup/upgrade); a directory <time> is made in it
--formatrequiredtext (default) or json (the machine output exp-upgrade/1)

Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).


Generated by ./console exp:help:examples from bin/php/upgradebackup.php, kernel/private/classes/commands/upgradebackup.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

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