Back to Apps
MongoDB Backup Amazon S3

Deploy MongoDB Backup Amazon S3 on Your Own Server

Runs mongodump to backup data using cronjob to an Amazon S3 bucket

πŸ—„οΈ DatabasesπŸ’Ύ Storage

Want to deploy MongoDB Backup Amazon S3 on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is MongoDB Backup Amazon S3?

Runs mongodump to backup data using cronjob to an S3 bucket

Learn more

Self-Host MongoDB Backup Amazon S3

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

General
3

Deploy

Copy the configuration and run it on your server.

services:
  mongodb_backup_s3:
    image: halvves/mongodb-backup-s3@sha256:e709db5e0fe5d44873ac5a385af214e951f2a0366a7c02b515ebf7c983658b0c
    environment:
      AWS_ACCESS_KEY_ID: ""
      AWS_SECRET_ACCESS_KEY: ""
      BACKUP_FOLDER: mongo_dumps/
      BUCKET: ""
      CRON_TIME: 0 3 * * *
      CRON_TZ: US/Eastern
      DISABLE_CRON: ""
      EXTRA_OPTS: ""
      INIT_BACKUP: "true"
      INIT_RESTORE: ""
      MONGODB_DB: ""
      MONGODB_HOST: ""
      MONGODB_PASS: ""
      MONGODB_PORT: "27017"
      MONGODB_USER: admin
      TZ: US/Eastern

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:80

Why Self-Host MongoDB Backup Amazon S3?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

halvves/mongodb-backup-s3@sha256:e709db5e0fe5d44873ac5a385af214e951f2a0366a7c02b515ebf7c983658b0c

Official Docs

github.com

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"