1.0.30 • Published 5 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
5 years ago
1.0.29
5 years ago
1.0.26
5 years ago
1.0.24
5 years ago
1.0.23
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago