keboola/kbc-project-backup

0.1.0 2020-10-05 06:40 UTC

This package is auto-updated.

Last update: 2020-10-05 06:44:55 UTC


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

Example

TODO

Data Structure

TODO

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_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_STORAGE_API_* variables are from the project you want to backup
  • TEST_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)
docker-compose run --rm tests