Skip to content

Dirvish with addtional sql clients for Postgres and MariaDB

Notifications You must be signed in to change notification settings

tkforbes/dirvish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ported from servercontainers/dirvish

This repo was created from servercontainers/dirvish but extended to include often-needed utilities of postgresql-client and mariadb-client. The image is built from debian:buster as the debian:jessie original was too old and provided outdated versions of the sql clients.

The following text comes from the original README.md...

Docker Dirvish Backup System (servercontainers/dirvish)

maintained by ServerContainers

FAQ - All you need to know about the servercontainers Containers

What is it

This Dockerfile (available as servercontainers/dirvish) gives you a Dirvish Backup System in a container.

  • Backup System in Container
    • runs at a specific time in infinite loop
  • Standalone Backup
    • container exits after backup is done
    • good if triggered from external cronjob etc.

For Configuration of the Server you use environment Variables and volume files.

It's based on the debian:jessie Image

View in Docker Registry servercontainers/dirvish

View in GitHub ServerContainers/dirvish

Environment variables

  • STANDALONE

    • if this variable is set to any value the container stops after the backup is done
    • default not set
  • TZ

    • specify the timezone inside the container
    • default Europe/Berlin
  • CRONTIME

    • overwrite default crontime with your one
    • default 30 4 * * *

Volumes

  • /config
    • this is where the container looks for:
      • master.conf (dirvish main configuration file - see example or official manual)
      • id_rsa (ssh private key to connect to backup-clients/servers)
        • don't forget to specify it inside master.conf
      • ida_rsa.pub (ssh public key - not needed - only on clients)
  • /backups
    • this is where the container stores backups and looks for backup-client configurations
    • default layout beneath this folder: bank/backup/dirvish/default.conf

Take a look at the GitHub Repo, you'll find a example there.

Cheat Sheet

SSH Key generation

To connect to your hosts, you need to install a ssh keypair on them. This keypair should be moved to the config folder of the container. Don't forget to specify it in the master.conf as well!

To generate a keypair just execute ssh-keygen -t rsa and follow the instructions. You'll find your keypair beneath ~/.ssh.

Now install the public keys on the servers you want to backup, and the private key on this container.

Dirvish

  • Initialize new vault
    • time dirvish --init --vault name_of_vault

About

Dirvish with addtional sql clients for Postgres and MariaDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published