vohinc / gsutil-sync
执行 gsutil rsync
v1.0.4
2017-06-19 06:40 UTC
Requires
- php: ^7
- illuminate/console: ~5.1
- illuminate/support: ~5.1
- symfony/process: ~3
- wilderborn/partyline: ^1.0
README
安装Gsutil
请遵循官方指南: 快速安装
设置
添加提供者
将提供者添加到 config/app.php
'providers' => [ ... Vohinc\GsutilSync\Providers\GsutilSyncProvider::class, ... ],
发布配置
php artisan vendor:publish --provider="Vohinc\GsutilSync\Providers\GsutilSyncProvider" --tag="config"
配置
return [ // Gsutil bin path 'bin' => '/usr/local/bin/gsutil', // What is the full path to your private key file? 'key' => env('GSUTIL_KEY_PATH'), // Please navigate your browser to https://cloud.google.com/console#/project, // then find the project you will use, and copy the Project ID string from the // second column. Older projects do not have Project ID strings. For such projects, // click the project and then copy the Project Number listed under that project. 'projectId' => '', // Gsutil config path // Allow Gsutil to call api 'boto' => storage_path('app/gsutil/boto'), // backup path. 'paths' => [ ], // Bucket name 'bucket' => '', // root path. 'root' => '', ];