All Projects → osixia → Docker Openldap Backup

osixia / Docker Openldap Backup

Licence: mit
A docker image to run OpenLDAP, and make periodic backups 🐳

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Docker Openldap Backup

Helicopterizer
Backup and Restore for Docker Container!
Stars: ✭ 112 (+49.33%)
Mutual labels:  backup, docker-image
Openedx Docker
🐳 A best practice Docker image of Open edX
Stars: ✭ 74 (-1.33%)
Mutual labels:  docker-image
Chrome Docker
Chrome, in a Docker container.
Stars: ✭ 69 (-8%)
Mutual labels:  docker-image
Docker Headless Vnc Container
Collection of Docker images with headless VNC environments
Stars: ✭ 1,176 (+1468%)
Mutual labels:  docker-image
Dockerfiles
lots of dockerfiles, based on alpine
Stars: ✭ 69 (-8%)
Mutual labels:  docker-image
Docker Pxe
A virtualized implementation of PXE supported by DNSMasq
Stars: ✭ 72 (-4%)
Mutual labels:  docker-image
Directus Docker
Directus 6 Docker — Legacy Container [EOL]
Stars: ✭ 68 (-9.33%)
Mutual labels:  docker-image
Docker Ruby Node
🐳 Alpine Docker Image with latest versions of Ruby, Node.js and yarn installed. This Docker Image is actively maintained and updated regularly.
Stars: ✭ 74 (-1.33%)
Mutual labels:  docker-image
Linuxgsm Docker
The Official LinuxGSM Docker image (experimental)
Stars: ✭ 73 (-2.67%)
Mutual labels:  docker-image
Sas Container Recipes
A collection of recipes and other resources for building containers that include SAS Viya software.
Stars: ✭ 71 (-5.33%)
Mutual labels:  docker-image
Puppeteer Container
A GitHub Action / Docker image for Puppeteer, the Headless Chrome Node API
Stars: ✭ 72 (-4%)
Mutual labels:  docker-image
Aws Lambda Swift Sprinter
AWS Lambda Custom Runtime for Swift with swift-nio 2.0 support
Stars: ✭ 70 (-6.67%)
Mutual labels:  docker-image
Alpine Erlang
An alpine image with Erlang installed, intended for releases
Stars: ✭ 73 (-2.67%)
Mutual labels:  docker-image
Pinboard Notes Backup
Back up the notes you’ve saved to Pinboard
Stars: ✭ 69 (-8%)
Mutual labels:  backup
Cv4pve Barc
Backup And Restore Ceph for Proxmox VE
Stars: ✭ 74 (-1.33%)
Mutual labels:  backup
Ydls
youtube-dl HTTP download and transcode service
Stars: ✭ 68 (-9.33%)
Mutual labels:  docker-image
Dockerfile Best Practices
Best Practices writing a Dockerfile
Stars: ✭ 72 (-4%)
Mutual labels:  docker-image
Docker Nuxt
Docker image to run NUXT.js application in production mode
Stars: ✭ 71 (-5.33%)
Mutual labels:  docker-image
Anchore Engine
A service that analyzes docker images and applies user-defined acceptance policies to allow automated container image validation and certification
Stars: ✭ 1,192 (+1489.33%)
Mutual labels:  docker-image
Bareos
Docker image for Bareos
Stars: ✭ 74 (-1.33%)
Mutual labels:  docker-image

osixia/openldap-backup

Docker Pulls Docker Stars

Latest release: 1.5.0 - Changelog | Docker Hub 

A docker image to run OpenLDAP, and make periodic backups.

Contributing

If you find this image useful here's how you can help:

  • Send a pull request with your kickass new features and bug fixes
  • Help new users with issues they may encounter
  • Support the development of this image and star this repo !

Quick start

This image is based on osixia/openldap please refer to: https://github.com/osixia/docker-openldap 

Here just the backup extension will be described.

Backup directory and data persistence

Backups are created in the directory /data/backup that should be mapped has volume so your ldap files are saved outside the container.

  docker run --env LDAP_BACKUP_CONFIG_CRON_EXP="0 5 * * *" \
  --volume /data/openldap/backup:/data/backup \
  --detach osixia/openldap-backup:1.5.0

For more information about docker data volume, please refer to :

https://docs.docker.com/userguide/dockervolumes/

Debug

The container default log level is info. Available levels are: none, error, warning, info, debug and trace.

Example command to run the container in debug mode:

docker run --detach osixia/openldap-backup:1.5.0 --loglevel debug

See all command line options:

docker run osixia/openldap-backup:1.5.0 --help

Environment Variables

Environment variables defaults are set in image/environment/default.yaml.

See how to set your own environment variables

  • LDAP_BACKUP_CONFIG_CRON_EXP: Cron expression to schedule OpenLDAP config backup. Defaults to 0 4 * * *. Every days at 4am.

  • LDAP_BACKUP_DATA_CRON_EXP: Cron expression to schedule OpenLDAP data backup. Defaults to 0 4 * * *. Every days at 4am.

  • LDAP_BACKUP_TTL: Backup TTL in days. Defaults to 15.

Set your own environment variables

Use command line argument

Environment variables can be set by adding the --env argument in the command line, for example:

docker run --env LDAP_BACKUP_CONFIG_CRON_EXP="0 5 * * *" \
--detach osixia/openldap-backup:1.5.0

Link environment file

For example if your environment file is in : /data/ldap/environment/my-env.yaml

docker run --volume /data/ldap/environment/my-env.yaml:/container/environment/01-custom/env.yaml \
--detach osixia/openldap-backup:1.5.0

Take care to link your environment file to /container/environment/XX-somedir (with XX < 99 so they will be processed before default environment files) and not directly to /container/environment because this directory contains predefined baseimage environment files to fix container environment (INITRD, LANG, LANGUAGE and LC_CTYPE).

Make your own image or extend this image

This is the best solution if you have a private registry. Please refer to the Advanced User Guide just below.

Advanced User Guide

Extend osixia/openldap-backup:1.5.0 image

If you need to add your custom environment files you can extends this image.

Dockerfile example:

FROM osixia/openldap-backup:1.5.0
MAINTAINER Your Name <[email protected]>

ADD environment /container/environment/01-custom

Make your own openldap-backup image

Clone this project:

git clone https://github.com/osixia/docker-openldap-backup
cd docker-openldap-backup

Adapt Makefile, set your image NAME and VERSION, for example:

NAME = osixia/openldap-backup
VERSION = 1.1.9

become:
NAME = cool-guy/openldap-backup
VERSION = 0.1.0

Add environment files...

Build your image:

make build

Run your image:

docker run --detach cool-guy/openldap-backup:0.1.0

Tests

We use Bats (Bash Automated Testing System) to test this image:

https://github.com/sstephenson/bats

Install Bats, and in this project directory run:

make test

Kubernetes

Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.

More information:

osixia-openldap-backup kubernetes examples are available in osixia/docker-openldap.

Under the hood: osixia/openldap

This image is based on osixia/openldap. More info: https://github.com/osixia/docker-openldap

Security

If you discover a security vulnerability within this docker image, please send an email to the Osixia! team at [email protected]. For minor vulnerabilities feel free to add an issue here on github.

Please include as many details as possible.

Changelog

Please refer to: CHANGELOG.md

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].