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 --helpHelp 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=jsonOptions
| Option | Value | Help |
|---|---|---|
--backup-dir | required | Where the backup goes (default var/backup/upgrade); a directory <time> is made in it |
--format | required | text (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 ...).
Related
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.