---
title: "Deploy Backup MySQL to Cloudflare R2"
description: "Run a single backup of a MySQL database to Cloudflare R2"
category: "Automation"
url: https://railway.com/deploy/7GOA4r
---

# Deploy Backup MySQL to Cloudflare R2

Run a single backup of a MySQL database to Cloudflare R2

**[Deploy Backup MySQL to Cloudflare R2 on Railway](https://railway.com/template/7GOA4r)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/7GOA4r/manifest.json

- **Creator:** Dylan Anthony's Projects
- **Category:** Automation
- **Total deploys:** 1

## Template content

### rclone-mysql-backup

- **Source:** dbanty/rclone-mysql-backup

## Documentation

This container runs a single time, backing up a MySQL database to [Cloudflare R2](https://developers.cloudflare.com/r2/). To set up properly:

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

Internally, this uses [mydumper](https://github.com/mydumper/mydumper) to dump the database quickly (saving you compute cost over `mysqldump`) and [rclone](https://rclone.org/) to sync the data with a folder in an R2 bucket.

You can modify the [generated rclone config](https://github.com/dbanty/rclone-mysql-backup/blob/06174cac3204c2e1e7b992d8f4ff112aa801561c/entrypoint.sh#L7-L16) to support virtually any other target for the backup.

## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/7GOA4r
