Railway

Deploy MySQL With Backups

The standard MySQL database plus backups to Cloudflare R2

Deploy MySQL With Backups

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:

  • Disable restarts
  • Set a Cron schedule to back up as often as you'd like in settings

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

mysql

Backup MySQL to R2

dbanty/rclone-mysql-backup

More templates in this category

View Template
Garage S3 Storage
Ultra-light S3 server: fast, open-source, plug-and-play.

PROJETOS
8
View Template
Redis
Self Host Latest Redis with Railway

5
View Template
EasyImg
Simple self-hostable Nuxt.js personal image hosting system.

Muhammad Bilal
0