contentful-backupdeprecated

A client for syncing backups (exports) of Contentful Spaces locally and to an AWS S3 bucket.

Usage no npm install needed!

<script type="module">
  import contentfulBackup from 'https://cdn.skypack.dev/contentful-backup';
</script>

README

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

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.