1.0.30 • Published 6 years ago
contentful-backup v1.0.30
Contentful Backup
A client for syncing backups (exports) of Contentful Spaces locally and to an AWS S3 bucket.
Usage
npm i -g contentful-backup
contentful-backup
ls -l ./export
Dependencies
- contentful-cli for exporting spaces
- aws-sdk - for clienting an S3 client
- s3 for syncing a folder to an S3 bucket
Environmental Variables
The required environmental variables are listed in the table below:
name | purpose |
---|---|
AWS_ACCESS_KEY_ID | The access key id used for uploading. |
AWS_REGION | The region the bucket above is located in. |
AWS_S3_BUCKET_NAME | The bucket name for used for uploading. |
AWS_SECRET_ACCESS_KEY | The secret access key used for uploading. |
CONTENTFUL_MANAGEMENT_TOKEN | This token is needed for full Contentful API access. It is generated per Contentul user. |
CONTENTFUL_SPACE_IDS | A comma-seperated list of Contentful Space Ids that will be backed up. |
EXPORT_DIR | The directory to export Contentful Space backups to. Defaults to ./export |
If no AWS variables are supplied, the script will still download backups locally.
1.0.30
6 years ago
1.0.29
6 years ago
1.0.26
6 years ago
1.0.24
6 years ago
1.0.23
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago