Skip to content
archive

GitHub Action

Platform.sh Database Backup and S3 Sync

1.3.0 Latest version

Platform.sh Database Backup and S3 Sync

archive

Platform.sh Database Backup and S3 Sync

Execute a database backup/dump sync to S3

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Platform.sh Database Backup and S3 Sync

uses: ChromaticHQ/[email protected]

Learn more about this action in ChromaticHQ/platformsh-db-dump-s3-sync-action

Choose a version

platformsh-db-dump-s3-sync-action

GitHub Action to take a database dump from a platform.sh site and copy the dump to S3.

Usage

- uses: chromatichq/db-backup-sync-action@v1
  with:
    platformsh_project: 'XXXX-project-id'  # required.
    platformsh_environment: 'main'  # required.
    platformsh_relationship: 'database'  # optional. specify if the project has multiple databases.
    platformsh_app: 'api' # optional. specify if the project has multiple apps.
    aws_s3_bucket: 'bucket-name'  # required.
    db_dump_filename_base: 'sitename-db-dump'
  env:
    PLATFORMSH_CLI_TOKEN: ${{ secrets.PLATFORMSH_CLI_TOKEN }}  # required.
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}  # required.
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}  # required.
    AWS_DEFAULT_REGION: 'us-west-2' # required.