altaris / s3backup

Dockerized restic + rclone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

s3backup

Docker Build Status MIT License

This docker image performs incremental backups of a given volume to an s3 storage using restic and rclone.

Quickstart

docker run                                                          \
    --rm                                                            \
    --volume datavolume:/rootfs:ro                                  \
    --env RESTIC_PASSWORD="passw0rd"                                \
    --env S3_ACCESS_KEY="XXXYYYYYYYYYYYYYY"                         \
    --env S3_ENDPOINT="po.ta.to"                                    \
    --env S3_PATH="bucket/folder"                                   \
    --env S3_REGION="us-east-1"                                     \
    --env S3_SECRET_KEY="1111111-2222-3333-44444-55555555555555"    \
    altaris/s3backup:amd64 backup

Environment variables

  • RCLONE_MAX_TRY (default: 5): Number of attempts to connect to container rclone server; set this to higher values on slower systems.
  • RESTIC_DURATION (default: 10y): Duration for which backups should be kept, see here.
  • RESTIC_PASSWORD: Password of the restic repository.
  • ROOTFS_PATH (default: /rootfs): Absolute path where the volume is mounted.
  • S3_ACCESS_KEY: S3 access key.
  • S3_ENDPOINT: S3 endpoint.
  • S3_REGION: S3 region.
  • S3_SECRET_KEY: S3 secret key.
  • S3_PATH: Path of the restic repository, e.g. bucket/foo.
  • S3_PROVIDER (default: AWS): Any S3 provided supported by rclone, see here.

About

Dockerized restic + rclone

License:MIT License


Languages

Language:Shell 76.5%Language:Makefile 12.5%Language:Dockerfile 11.0%