百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

mgob

> 数据库
开源

MongoDB 容器化备份代理。可运行带有保留期的定时备份、S3 和 SFTP 上传、通知、使用 Prometheus 进行监控等功能。

199 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

MongoDB 容器化备份代理。可运行带有保留期的定时备份、S3 和 SFTP 上传、通知、使用 Prometheus 进行监控等功能。

mgob

MGOB is a MongoDB backup automation tool designed using Go. This fork introduces a variety of enhancements over the original repository by stefanprodan, which is set to be archived. Check out the archival discussion here.

Note: New features are being added to this fork exclusively.

Enhancements in This Fork

  • Backup validation
  • Retry mechanism for backups
  • MS Team notification support
  • Updated email notification mechanism addressing the certificate issue
  • Go updated to 1.21
  • Dependencies updated
  • Introduced warnOnly option for all notification channels
  • Integrated Github Actions for CI/CD
  • New Helm Chart with enhanced metrics, liveness probe, and other features
  • Multiple Docker image releases catering to different backup solutions
  • Option to skip local backup when retention is set to 0 (#42, Credit: @aneagoe)
  • On-demand restore API
  • Load config from environment variables to override config file. syntax: PLAN_ID__KEY_PROPERTY (e.g. mongo_test__SMTP_SERVER=smtp.company.com)

Helm Chart

bash
helm pull oci://registry-1.docker.io/maxisam/mgob --version 2.1.0
helm upgrade  oci://registry-1.docker.io/maxisam/mgob --version 

Breaking Changes

  • v2: in config, sftp.private_key -> sftp.privateKey

Original Features

  • schedule backups
  • local backups retention
  • upload to S3 Object Storage (Minio, AWS, Google Cloud, Azure)
  • upload to gcloud storage
  • upload to SFTP
  • upload to any Rclone supported storage
  • notifications (Email, Slack)
  • instrumentation with Prometheus
  • http file server for local backups and logs
  • distributed as an Alpine Docker image

Installation

MGOB is available on Docker Hub at maxisam/mgob.

Supported tags:

  • maxisam/mgob:latest latest stable release

Compatibility matrix:

MGOB MongoDB
stefanprodan/mgob:0.9 3.4
stefanprodan/mgob:0.10 3.6
stefanprodan/mgob:1.0 4.0
stefanprodan/mgob:1.1 4.2
maxisam/mgob:1.10 5.0
maxisam/mgob:1.12 7.0

Docker:

bash
docker run -dp 8090:8090 --name mgob \
    -v "/mgob/config:/config" \
    -v "/mgob/storage:/storage" \
    -v "/mgob/tmp:/tmp" \
    -v "/mgob/data:/data" \
    stefanprodan/mgob \
    -LogLevel=info

Configuration

Define a backup plan (yaml format) for each database you want to backup inside the config dir. The yaml file name is being used as the backup plan ID, no white spaces or special characters are allowed.

READ MORE

On-Demand Operations

MGOB exposes a set of HTTP endpoints for on-demand operations like backup, restore, status, metrics, and version.

READ MORE: On-Demand Operations

Logs

READ MORE: Logs

Metrics

READ MORE: Metrics

Restore

READ MORE: Restore

Special Thanks

  • stefanprodan for the original repository
  • First awesome sponsor!!

Sponsors

Issues· 28 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gobackupdockerkubernetesmongodb

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库