N98\Magento\Command\Database\DumpCommand::configure PHP 메소드

configure() 보호된 메소드

protected configure ( )
    protected function configure()
    {
        $this->setName('db:dump')->addArgument('filename', InputArgument::OPTIONAL, 'Dump filename')->addOption('add-time', 't', InputOption::VALUE_OPTIONAL, 'Adds time to filename (only if filename was not provided)')->addOption('compression', 'c', InputOption::VALUE_REQUIRED, 'Compress the dump file using one of the supported algorithms')->addOption('xml', null, InputOption::VALUE_NONE, 'Dump database in xml format')->addOption('hex-blob', null, InputOption::VALUE_NONE, 'Dump binary columns using hexadecimal notation (for example, "abc" becomes 0x616263)')->addOption('only-command', null, InputOption::VALUE_NONE, 'Print only mysqldump command. Do not execute')->addOption('print-only-filename', null, InputOption::VALUE_NONE, 'Execute and prints no output except the dump filename')->addOption('dry-run', null, InputOption::VALUE_NONE, 'do everything but the dump')->addOption('no-single-transaction', null, InputOption::VALUE_NONE, 'Do not use single-transaction (not recommended, this is blocking)')->addOption('human-readable', null, InputOption::VALUE_NONE, 'Use a single insert with column names per row. Useful to track database differences. Use db:import ' . '--optimize for speeding up the import.')->addOption('add-routines', null, InputOption::VALUE_NONE, 'Include stored routines in dump (procedures & functions)')->addOption('stdout', null, InputOption::VALUE_NONE, 'Dump to stdout')->addOption('strip', 's', InputOption::VALUE_OPTIONAL, 'Tables to strip (dump only structure of those tables)')->addOption('exclude', 'e', InputOption::VALUE_OPTIONAL, 'Tables to exclude from the dump')->addOption('force', 'f', InputOption::VALUE_NONE, 'Do not prompt if all options are defined')->setDescription('Dumps database with mysqldump cli client according to informations from local.xml');
        $help = <<<HELP
Dumps configured magento database with `mysqldump`. You must have installed
the MySQL client tools.

On debian systems run `apt-get install mysql-client` to do that.

The command reads app/etc/local.xml to find the correct settings.

See it in action: http://youtu.be/ttjZHY6vThs

- If you like to prepend a timestamp to the dump name the --add-time option
  can be used.

- The command comes with a compression function. Add i.e. `--compression=gz`
  to dump directly in gzip compressed file.

HELP;
        $this->setHelp($help);
    }