---
title: "Deploy mongo-s3-backup"
description: "A simple NodeJS app to back up your MongoDB database to S3 via a cron."
category: "Other"
url: https://railway.com/deploy/VkrypE
---

# Deploy mongo-s3-backup

A simple NodeJS app to back up your MongoDB database to S3 via a cron.

**[Deploy mongo-s3-backup on Railway](https://railway.com/template/VkrypE)**

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

- **Creator:** andresfiloso
- **Category:** Other
- **Total deploys:** 1

## Template content

### mongo-s3-backup

- **Source:** https://github.com/andresfiloso/mongo-s3-backup

## Documentation

### Overview
The template uses node-cron or Railway cron, written in TypeScript to dump your MongoDB data to a file and then upload the file to S3.

### Highlights
Configurable backup schedule: By default, the cron runs at 00 AM every day but is configurable via the `BACKUP_CRON_SCHEDULE` environment variable.

Support for custom buckets: The script also supports using a `AWS_S3_ENDPOINT` environment variable to use any S3 compliant storage bucket.

### Configuration
- `AWS_ACCESS_KEY_ID`
- `AWS_SECRET_ACCESS_KEY`
- `AWS_S3_BUCKET`
- `AWS_S3_REGION`
- `BACKUP_MONGO_URI`
- `BACKUP_CRON_SCHEDULE`
- `AWS_S3_ENDPOINT`


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

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