All Projects → tiredofit → docker-mongodb-backup

tiredofit / docker-mongodb-backup

Licence: MIT license
Docker MongoDB Backup Container based on Alpine w/S6 init, Zabbix Monitoring

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-mongodb-backup

docker-tinc
Docker Tinc VPN Mesh server w/S6 Overlay Init, Zabbix Monitoring, and distributed configuration updating based on Alpine
Stars: ✭ 35 (+29.63%)
Mutual labels:  alpine, zabbix-agent, s6-overlay
docker-jitsi-meet
Docker Jitsi Meet WebRTC conferencing system w/Prosody XMPP and s6 overlay
Stars: ✭ 66 (+144.44%)
Mutual labels:  alpine, s6-overlay
docker-aws-s3-sync
Docker container to sync a folder to Amazon S3
Stars: ✭ 21 (-22.22%)
Mutual labels:  backup, alpine
docker-formio-api
Docker Form.io Server based on Debian w/s6 init, Zabbix Monitoring
Stars: ✭ 14 (-48.15%)
Mutual labels:  alpine, s6-overlay
docker-alpine
Docker Alpine Linux Base Images
Stars: ✭ 27 (+0%)
Mutual labels:  alpine, s6-overlay
docker-db-backup
Backup mutltiple databases types on a scheduled basis with many customizable options
Stars: ✭ 302 (+1018.52%)
Mutual labels:  mongo, backup
mongodb-backup-manager
🌿 A Full-stack MongoDB Backup System.
Stars: ✭ 42 (+55.56%)
Mutual labels:  mongo, backup
php7-alpine
Docker container for PHP 7 in Alpine Linux, with almost all extensions that you may need
Stars: ✭ 20 (-25.93%)
Mutual labels:  mongo, alpine
alpine-qbittorrent-openvpn
qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
Stars: ✭ 230 (+751.85%)
Mutual labels:  alpine, s6-overlay
docker-nfs4
Simple containerized NFS v4 server running on Alpine Linux
Stars: ✭ 19 (-29.63%)
Mutual labels:  alpine, s6-overlay
time-travel
An rsync based backup script which only transfers modified files. Smooth integration into OSX Notification Center.
Stars: ✭ 43 (+59.26%)
Mutual labels:  backup
adlibre-backup
High performance rsync backup utilising BTRFS / ZFS filesystem features
Stars: ✭ 35 (+29.63%)
Mutual labels:  backup
docker-alpine-sshd
A lightweight OpenSSH Docker Image built atop Alpine Linux.
Stars: ✭ 108 (+300%)
Mutual labels:  alpine
calcardbackup
calcardbackup: moved to https://codeberg.org/BernieO/calcardbackup
Stars: ✭ 67 (+148.15%)
Mutual labels:  backup
sublimetext-autobackups
Sublime Text 2/3 Auto backups plugin
Stars: ✭ 70 (+159.26%)
Mutual labels:  backup
discord-economy-super
Easy and customizable economy module for your Discord bot.
Stars: ✭ 28 (+3.7%)
Mutual labels:  mongo
mern-stack-crud
MERN stack (MongoDB, Express, React and Node.js) create read update and delete (CRUD) web application example
Stars: ✭ 142 (+425.93%)
Mutual labels:  mongo
helm-backup
Helm plugin which performs backup/restore of releases in a namespace to/from a file
Stars: ✭ 70 (+159.26%)
Mutual labels:  backup
php-mssql-alpine
Docker image with Microsoft SQL Server Driver into php image alpine
Stars: ✭ 28 (+3.7%)
Mutual labels:  alpine
shelvery-aws-backups
Automating EBS RDS EC2 backups on lambda
Stars: ✭ 31 (+14.81%)
Mutual labels:  backup

tiredofit/mongodb-backup

Unmaintained - Active Development now resides here tiredofit/db-backup

Introduction

This will build a container for backing up MongoDB containers.

  • dump to local filesystem
  • select database user and password
  • backup all databases or specific database
  • choose to have an MD5 sum after backup for verification
  • delete old backups after specific amount of time
  • choose compression type (none, gz, bz, xz)
  • connect to any container running on the same system
  • select how often to run a dump
  • select when to start the first dump, whether time of day or relative to container start time

This Container uses Alpine:Edge as a base.

Changelog

Authors

Table of Contents

Prerequisites

You must have a working MongoDB server available for this to work properly, it does not provide server functionality!

Installation

Automated builds of the image are available on Docker Hub and is the recommended method of installation.

docker pull tiredofit/mongodb-backup

Quick Start

NOTE: If you are using this with a docker-compose file along with a seperate SQL container, take care not to set the variables to backup immediately, more so have it delay execution for a minute, otherwise you will get a failed first backup.

Configuration

Data-Volumes

The following directories are used for configuration and can be mapped for persistent storage.

Directory Description
/backups SQL Backups

Environment Variables

Along with the Environment Variables from the Base image, below is the complete list of available options that can be used to customize your installation.

Parameter Description
DB_HOST server name
DB_NAME (optional) database name
DB_USER (optional) username for the database
DB_PASS (optional) password for the database
DB_AUTH (optional) authentication database
DB_DUMP_FREQ How often to do a dump, in minutes. Defaults to 1440 minutes, or once per day.
DB_DUMP_BEGIN What time to do the first dump. Defaults to immediate. Must be in one of two formats
Absolute HHMM, e.g. 2330 or 0415
Relative +MM, i.e. how many minutes after starting the container, e.g. +0 (immediate), +10 (in 10 minutes), or +90 in an hour and a half
DB_DUMP_DEBUG If set to true, print copious shell script messages to the container log. Otherwise only basic messages are printed.
DB_DUMP_TARGET Where to put the dump file, should be a directory. Supports three formats
Local If the value of DB_DUMP_TARGET starts with a / character, will dump to a local path, which should be volume-mounted.
DB_CLEANUP_TIME Value in minutes to delete old backups (only fired when dump freqency fires). 1440 would delete anything above 1 day old. You don't need to set this variable if you want to hold onto everything.
COMPRESSION Use either Gzip (GZ), Bzip2 (BZ), XZip (XZ), or none (NONE). (Default GZ)
MD5 Generate MD5 Sum in Directory, TRUE or FALSE (Default TRUE)

Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

docker exec -it (whatever your container name is e.g.) mongodb-backup bash
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].