All Templates / Storage
MySQL With Backups
The standard MySQL database plus backups to Cloudflare R2
MySQL
mysql
Just deployed
/var/lib/mysql
Backup MySQL to R2
dbanty/rclone-mysql-backup
Just deployed
Deploys the standard Railway MySQL plus a container which backs up that database to Cloudflare R2.
To set up properly, modify the backups service to:
Internally, this uses mydumper to dump the database quickly (saving you compute cost over mysqldump) and rclone to sync the data with a folder in an R2 bucket.
You can modify the generated rclone config to support virtually any other target for the backup.
Template Content
MySQL
mysqlBackup MySQL to R2
dbanty/rclone-mysql-backupR2_BUCKET
R2_ENDPOINT
R2_ACCESS_KEY_ID
R2_SECRET_ACCESS_KEY
Details
Created on Mar 19, 2024
3 total projects
2 active projects
80% success on recent deploys
Shell, Dockerfile
Storage
More templates in this category