Pantheon\Terminus\Commands\Backup\CreateCommand::create PHP Метод

create() публичный Метод

Create a backup of the specified environment
public create ( string $site_env, $options = ['element' => null, 'keep-for' => 365] )
$site_env string Site & environment to make a backup of, in the form `site-name.env`.
    public function create($site_env, $options = ['element' => null, 'keep-for' => 365])
    {
        list(, $env) = $this->getSiteEnv($site_env);
        if (isset($options['element']) && $options['element'] == 'db') {
            $options['element'] = 'database';
        }
        $env->getBackups()->create($options)->wait();
        $this->log()->notice('Created a backup of the {env} environment.', ['env' => $env->id]);
    }
CreateCommand