keboola/kbc-project-backup
最新稳定版本:1.19.0
Composer 安装命令:
composer require keboola/kbc-project-backup
包简介
Backup KBC project
README 文档
README
PHP library for easy backup of KBC project into Amazon Simple Cloud Storage Service (S3)
Usage
Library is available as composer package.
Installation
composer require keboola/php-storage-api-backup
Development
Clone github repository and build Docker container
git clone https://github.com/keboola/php-storage-api-backup.git
cd php-storage-api-backup
docker-compose build
Create .env file from this template
TEST_AWS_STORAGE_API_URL= TEST_AWS_STORAGE_API_TOKEN= TEST_AWS_ACCESS_KEY_ID= TEST_AWS_SECRET_ACCESS_KEY= TEST_AWS_REGION= TEST_AWS_S3_BUCKET= TEST_AZURE_STORAGE_API_URL= TEST_AZURE_STORAGE_API_TOKEN= TEST_AZURE_ACCOUNT_NAME= TEST_AZURE_ACCOUNT_KEY= TEST_AZURE_CONTAINER_NAME= TEST_GCP_STORAGE_API_URL= TEST_GCP_STORAGE_API_TOKEN= TEST_GCP_BUCKET= TEST_GCP_SERVICE_ACCOUNT=
TEST_AWS_STORAGE_API_*variables are from the project with AWS S3 backend which you want to backupTEST_AWS_*variables are from the S3 bucket the backup will be stored to (Use aws-cf-template.json CloudFormation stack template to create all required AWS resources)TEST_AZURE_STORAGE_API_*variables are from the project with Azure Blob storage backend which you want to backupTEST_AZURE_ACCOUNT_create new Storage Account in your Azure SubscriptionTEST_AZURE_CONTAINER_NAMEcontainer which will be created in your Storage AccountTEST_GCP_STORAGE_API_*variables are from the project with GCP Storage backend which you want to backupTEST_GCP_BUCKETbucket in your Google StorageTEST_GCP_SERVICE_ACCOUNTService account with permissions to write to the bucket
docker-compose run --rm tests
License
MIT licensed, see LICENSE file.
统计信息
- 总下载量: 555
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-02