Railway

Deploy MongoDB Backup's S3

Automated MongoDB database backups and uploading them to S3

Deploy MongoDB Backup's S3

Just deployed

MongoDB Backup to S3

Automated MongoDB backup solution that creates regular database backups and uploads them to S3-compatible storage.

Features

  • Automatic MongoDB database backups using native mongodump
  • Direct upload to S3-compatible storage (AWS S3, Cloudflare R2, etc.)
  • Configurable backup schedule via cron expressions
  • Automatic cleanup of old local backups
  • Proper error handling and logging

Example Configuration

# MongoDB Configuration
DB_HOST=
DB_PORT=
DB_USER=
DB_PASS=
DB_AUTH_SOURCE=
DB_NAME=

# S3 Configuration (Cloudflare R2)
S3_BUCKET=
S3_ENDPOINT=
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
S3_REGION=

# Backup Settings
BACKUP_CRON=0 */6 * * *  # Run every 6 hours
BACKUP_RETENTION_DAYS=30  # Keep local backups for 30 days

Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
View Template
Prefect [Updated Feb ’26]
Prefect [Feb ’26] (ETL & Automation alternative to Airflow) Self Host

shinyduo