mongo-s3-backup

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

Deploy mongo-s3-backup

mongo-s3-backup

andresfiloso/mongo-s3-backup

Just deployed

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

Template Content

More templates in this category

View Template

Foundry Virtual Tabletop

A Self-Hosted & Modern Roleplaying Platform


View Template

(v1) Simple Medusa Backend

Deploy an ecommerce backend and admin using Medusa


View Template

peppermint

Docker-compose port for peppermint.sh