$arrayFile) { if (!empty($arrayFile)) { $resultFiles[] = $arrayFile; } } $options = new ProviderOptions\Yandex(); $options->token = $token; $options->remoteDirectoryPath = $baseRemoteDirectoryPath; $options->fileWebPath = "https://your.site.there/backups/there/"; $options->backupVersionDirName = date("Y-m-d"); $yandexProvider = new Yandex($options); try { $yandexProvider->proceedBackup($resultFiles); } catch (ProviderException $e) { echo $e->getMessage(); }