Skip to content

Restic in a docker container for timed backups using tinycron.

License

Notifications You must be signed in to change notification settings

janstuemmel/restic-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Restic in a docker container for timed backups using tinycron.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published