Learn how to backup your Blnk data to a local disk.
Create a backup directory
/var/backups/blnk
.Set permissions
Replace youruser:yourgroup
with the user and group that your Blnk server runs as. This step is crucial for preventing unauthorized access to your backup files.
Update the Blnk configuration file
blnk.json
configuration file to include the path to the backup directory. This tells the Blnk server where to save the backup files.Open your blnk.json
file in a text editor and add the backup_dir
key with the path to your backup directory:Create a backup script
backup.sh
that triggers the Blnk server to back up to disk using the /backup
route.Schedule the backup with Cron
Locate your backup file
Restore the database
pg_restore
command or a similar tool provided by Blnk to restore your database from the backup file.Verify the restoration