datocms-plugin-automatic-environment-backups
v0.6.6
Published
A plugin that creates daily and weekly backups of your main environment on DatoCMS automatically.
Readme
Automatic environment backups
This plugin manages automatic backups of your DatoCMS primary environment using an external Lambda deployment with cron scheduling.
How it works
- Backup cadence is configured in the plugin (
daily,weekly,bi-weekly,monthly). - The deployed scheduler calls the backup endpoints on your Lambda deployment.
- The plugin validates Lambda connectivity using health checks.
- The backup overview includes a per-slot Backup now action for on-demand execution.
Setup
- Open the plugin config screen.
- In Lambda setup, click Deploy lambda and choose one option:
- Vercel: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmarcelofinamorvieira%2Fdatocms-backups-scheduled-function&env=DATOCMS_FULLACCESS_API_TOKEN,DATOCMS_BACKUPS_SHARED_SECRET&project-name=datocms-backups-scheduled-function&repo-name=datocms-backups-scheduled-function
- Netlify: https://app.netlify.com/start/deploy?repository=https://github.com/marcelofinamorvieira/datocms-backups-scheduled-function
- Cloudflare: https://github.com/marcelofinamorvieira/datocms-backups-scheduled-function#deploying-on-cloudflare-workers
- Configure
DATOCMS_BACKUPS_SHARED_SECRETin the Lambda deployment environment (superSecretTokenis the default). - Paste the deployed URL into Lambda URL.
- Paste the same secret into Lambda auth secret (defaults to
superSecretTokenin the plugin UI). - Click Connect and confirm status is Connected (ping successful).
- Choose backup cadences and click Save.
Lambda API contract
The plugin uses these Lambda endpoints:
POST /api/datocms/plugin-healthPOST /api/datocms/backup-statusPOST /api/datocms/backup-now
All requests include X-Datocms-Backups-Auth and must match DATOCMS_BACKUPS_SHARED_SECRET.
