Sign inSign up

janstuemmel/restic

By janstuemmel

Updated over 5 years ago

Restic in a docker container for timed backups using tinycron.

Image
0

254

janstuemmel/restic repository overview

Restic Docker

Restic in a docker container for timed backups using tinycron.

Usage

version: '3'

services:

  # some service that saves data in /var/service/data
  app:
    image: someservice
    volumes:
      - data:/var/service/data

  restic:
    image: janstuemmel/restic 
    restart: always
    volumes:
      # mount .ssh for remote backup
      # - ~/.ssh:/app/.ssh:ro
      - backup:/repo
      - data:/backup/data
    environment:
      CRON: '@daily'
      RESTIC_JSON: 'true'
      RESTIC_HOST: example_host
      RESTIC_TAG: example_tag
      RESTIC_ARGS: --exclude cache
      # using ssh, disable host key verification
      # RESTIC_ARGS: -o sftp.command="ssh -o StrictHostKeyChecking=no"
      RESTIC_FORGET_ARGS: --keep-daily 1
      # default
      RESTIC_REPOSITORY: /repo
      RESTIC_PASSWORD: restic

volumes:
  data:
  backup:

Tag summary

Content type

Image

Digest

Size

12.9 MB

Last updated

over 5 years ago

docker pull janstuemmel/restic