exp:ezsqldumpschema
Dump the database schema to a file or standard output (--type, --user).
Script bin/php/ezsqldumpschema.php, code in kernel/private/classes/commands/ezsqldumpschema.php. Run it from the installation root, as the user the web server runs as:
./console exp:ezsqldumpschema --help
php bin/php/ezsqldumpschema.php --helpOptions
| Option | Value | Help |
|---|---|---|
--type | required | |
--user | required | |
--host | required | |
--password | optional | |
--port | required | |
--socket | required | |
--output-array | ||
--output-serialized | ||
--output-sql | ||
--diff-friendly | ||
--meta-data | ||
--table-type | required | |
--table-charset | required | |
--compatible-sql | ||
--no-sort | ||
--format | required | |
--output-types | required | |
--allow-multi-insert | ||
--schema-file | required |
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 ...).
Arguments: [database][filename].
Related
Generated by ./console exp:help:examples from bin/php/ezsqldumpschema.php, kernel/private/classes/commands/ezsqldumpschema.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.