Pantheon\Terminus\Commands\Backup\Automatic\EnableCommand::enableSchedule PHP Метод

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

Set up a week-long TTL backups to be made daily and a month-long TTL to be made weekly
public enableSchedule ( string $site_env, $options = ['day' => null] )
$site_env string Site & environment to set the schedule of, in the format `site-name.env`.
    public function enableSchedule($site_env, $options = ['day' => null])
    {
        list(, $env) = $this->getSiteEnv($site_env);
        $env->getBackups()->setBackupSchedule($options);
        $this->log()->notice('Backup schedule successfully set.');
    }
EnableCommand