Swarm backup bot
This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Luke Murphy 4a8cebe14b
continuous-integration/drone/push Build is passing Details
Add verbosity
2020-09-21 15:03:20 +02:00
.drone.yml Add drone build 2020-09-18 09:42:05 +02:00
Dockerfile Add verbosity 2020-09-21 15:03:20 +02:00
LICENSE Add first stab at backup-bot 2020-09-18 09:18:39 +02:00
Makefile Add first stab at backup-bot 2020-09-18 09:18:39 +02:00
README.md Fix up docs 2020-09-18 10:33:48 +02:00

README.md

backup-bot

Build Status

A robot who does backups in the swarm.

Publishing

If you push a commit to master, the Drone config will publish to Docker Hub.

Usage

backupbot:
  image: "decentral1se/backup-bot:0.0.1"
  secrets:
    - backup_bot_ssh_key
    - db_password
  configs:
    - source: borgmatic_config_yml
      target: /etc/borgmatic/config.yaml
  environment:
    - BORGBASE_REPO="g067e243@g067e243.repo.borgbase.com:repo"
    - DB_HOST=mariadb
    - DB_TABLE=wordpress
    - DB_USER=wordpress
  deploy:
    mode: replicated
    replicas: 0
    labels:
      - "swarm.cronjob.enable=true"
      - "swarm.cronjob.schedule=0 2 * * *" # "At 02:00 every night"
    restart_policy:
      condition: none