https://github.com/janstuemmel/restic-docker
Restic in a docker container for timed backups using tinycron.
https://github.com/janstuemmel/restic-docker
backup cron docker restic
Last synced: 5 months ago
JSON representation
Restic in a docker container for timed backups using tinycron.
- Host: GitHub
- URL: https://github.com/janstuemmel/restic-docker
- Owner: janstuemmel
- License: mit
- Created: 2019-08-08T12:38:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-27T22:23:17.000Z (almost 5 years ago)
- Last Synced: 2025-02-17T22:32:39.928Z (8 months ago)
- Topics: backup, cron, docker, restic
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Restic Docker
[Restic](https://github.com/restic/restic) in a docker container for timed backups using [tinycron](https://github.com/bcicen/tinycron).
## Usage
```yml
version: '3'services:
# some service that saves data in /var/service/data
app:
image: someservice
volumes:
- data:/var/service/datarestic:
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: resticvolumes:
data:
backup:
```