Public | Automated Build

Last pushed: 20 days ago
Short Description
ElkarBackup is a free open-source backup solution based on RSync/RSnapshot
Full Description

ElkarBackup

Images

Latest stable version with Apache and PHP7

  • 1.3.1, 1.3.1-apache, latest-apache, latest (default)
  • 1.2.7, 1.2-apache

How to use this image

$ docker run --name my-elkarbackup --link some-mysql:mysql -d elkarbackup/elkarbackup:latest

Where to store data

Docker container does not come with persistent storage. However, there are
several ways to store data in the host machine. We encourage users to
familiarize themselves with the options available.

Below you have the directories you might want to persist:

path description
/app/backups Default backup storage directory.
/app/uploads Pre and post scripts.
/app/.ssh SSH keys.

... via docker-compose

You can use Docker Compose to easily run ElkarBackup in an isolated environment built with Docker containers:

docker-compose.yml

version: '3'

services:
  elkarbackup:
    image: elkarbackup/elkarbackup:1.3.1-apache
    environment:
      SYMFONY__DATABASE__PASSWORD: "your-password-here"
      EB_CRON: "enabled"
      volumes:
      - backups:/app/backups
      - uploads:/app/uploads
      - sshkeys:/app/.ssh
    ports:
      - 8000:80

  db:
    image: mysql:5.7.22
    environment:
      MYSQL_ROOT_PASSWORD: "your-password-here"
    volumes:
      - db:/var/lib/mysql

  client:
    image: elkarbackup/client

volumes:
  db:
  backups:
  uploads:
  sshkeys:

Run docker-compose up, wait for it to initialize completely, and the address:

Environment variables

The following environment variables are also honored for configuring your ElkarBackup instance:

General

name default value description
TZ Europe/Paris Timezone
PHP_TZ Europe/Paris Timezone (PHP)
EB_CRON disabled run tick command periodically

Database configuration

name default value description
SYMFONY__DATABASE__DRIVER pdo_mysql driver
SYMFONY__DATABASE__PATH null db path (sqlite)
SYMFONY__DATABASE__HOST db db host
SYMFONY__DATABASE__PORT 3306 db port
SYMFONY__DATABASE__NAME elkarbackup db name
SYMFONY__DATABASE__USER root db user
SYMFONY__DATABASE__PASSWORD root db password

Mailer configuration

name default value description
SYMFONY__MAILER__TRANSPORT smtp transport
SYMFONY__MAILER__HOST localhost host
SYMFONY__MAILER__USER null user
SYMFONY__MAILER__PASSWORD null password
SYMFONY__MAILER__FROM null from address

Elkarbackup configuration

name default value description
SYMFONY__EB__SECRET fba546d6ab6abc4a01391d161772a14e093c7aa2 framework secret
SYMFONY__EB__UPLOAD__DIR /app/uploads scripts directory
SYMFONY__EB__BACKUP__DIR /app/backups backups directory
SYMFONY__EB__TMP__DIR /app/tmp tmp directory
SYMFONY__EB__URL__PREFIX null url path prefix (i.e. /elkarbackup)
SYMFONY__EB__PUBLIC__KEY /app/.ssh/id_rsa.pub ssh publick key path
SYMFONY__EB__TAHOE__ACTIVE false -
SYMFONY__EB__MAX__PARALLEL__JOBS 1 v1.3 or higher
SYMFONY__EB__POST__ON__PRE__FAIL true v1.3 or higher
Docker Pull Command
Owner
elkarbackup
Source Repository