CraftCli\Command\DbBackupCommand::fire PHP Method

fire() protected method

protected fire ( )
    protected function fire()
    {
        $db = $this->craft->getComponent('db');
        $path = $this->suppressOutput([$db, 'backup']);
        $path = preg_replace('/^' . preg_quote(getcwd() . DIRECTORY_SEPARATOR, '/') . '/', '.' . DIRECTORY_SEPARATOR, $path);
        $this->info(sprintf('Backup %s created.', $path));
    }
DbBackupCommand