2017 © Pedro Peláez
 

library kbc-project-restore

image

keboola/kbc-project-restore

  • Thursday, May 24, 2018
  • by Keboola
  • Repository
  • 5 Watchers
  • 0 Stars
  • 132 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Keboola Connection Project Restore PHP

PHP library for clone KBC project from backup in: - Amazon Simple Cloud Storage Service (S3) - Microsoft Azure Blob Storage, (*1)

Usage

Library is available as composer package., (*2)

Installation

composer require keboola/kbc-project-restore

Development

Clone github repository and build Docker container, (*3)

git clone https://github.com/keboola/php-storage-api-restore.git
cd php-storage-api-restore
docker-compose build

Create .env file from this template, (*4)

TEST_STORAGE_API_URL=
TEST_STORAGE_API_TOKEN=
TEST_AWS_ACCESS_KEY_ID=
TEST_AWS_SECRET_ACCESS_KEY=
TEST_AWS_REGION=
TEST_AWS_S3_BUCKET=
TEST_AZURE_ACCOUNT_NAME=
TEST_AZURE_ACCOUNT_KEY=
TEST_AZURE_CONTAINER_NAME=
  • TEST_STORAGE_API_* variables are from the destination project
  • TEST_AWS_* variables are from the S3 bucket where the backup files are stored (Use aws-cf-template.json CloudFormation stack template to create all required AWS resources)
  • TEST_AZURE_ACCOUNT_ create new Storage Account in your Azure Subscription
  • TEST_AZURE_CONTAINER_NAME container whhich will be created in your Storage Account
docker-compose run --rm tests

License

MIT licensed, see LICENSE file., (*5)

The Versions