---
title: "Deploy MySQL backups to S3"
description: "A simple NodeJS application to backup your MySQL database to S3 via a cron."
category: "Automation"
url: https://railway.com/deploy/GRx3Mi
---

# Deploy MySQL backups to S3

A simple NodeJS application to backup your MySQL database to S3 via a cron.

**[Deploy MySQL backups to S3 on Railway](https://railway.com/template/GRx3Mi)**

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

- **Category:** Automation
- **Total deploys:** 13

## Template content

### MySQL backups to S3

- **Source:** https://github.com/Natuz/mysql-s3-backup
- **Start command:** `npm run start`
- **Health check:** /

## Documentation

## Overview

This template starts a small Node.js app that automatically creates a database dump and saves it to an S3 bucket by schedule.

## Setup

To start the app just need to add environment variables to specify the database (DB name, host, user, password), the S3 bucket you want the dump to be saved to (access ID, secret ID, bucket name, bucket region), and cron schedule.

By default, the cron is running daily at 5 am.

## 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/GRx3Mi
