Learn how to backup your Blnk data to the cloud.
Create an IAM user and policy
Configure S3 bucket
Update Blnk configuration
blnk.json
configuration file to include the AWS access key ID, secret access key, bucket name, and region. This enables the Blnk server to authenticate with AWS S3 and store backups in your bucket.Create a backup script
backup_to_s3.sh
that triggers the Blnk server to back up to S3 using the /backup-s3
route.http://yourdomain.com:5001
with your actual Blnk server domain and port.Schedule the backup with Cron
Download the backup file
Restore the database
pg_restore
command with the path to the downloaded backup file.Verify the restoration