Sign inSign up

guixi/autorestic

By guixi

Updated 8 months ago

Image
0

1.9K

guixi/autorestic repository overview

Docker image based on the awesome cupcakearmy/autorestic.

Features

Often it is usefully to trigger backups automatically. So in this image, it would be trigger the command every 5min.

Install

  1. Create an initial config file (autorestic.yml) such as:
locations:
    my-location:
      from: /data
      to: my-backend
      forget: prune
      cron: '0 3 * * 0' # Every Sunday at 3:00

You can read full docs to configure it. 2. Create an empty file (autorestic.lock.yml) 3. run docker-compose as below:

version: "3"
services:
    autorestic:
      image: guixi/autorestic
      container_name: autorestic
      restart: unless-stopped
      volumes:
        - /etc/localtime:/etc/localtime:ro
        - $(pwd)/autorestic.yml:/root/.autorestic.yml:ro
        - $(pwd)/autorestic.lock.yml:/root/.autorestic.lock.yml
        - ~/.config/rclone/rclone.conf:/root/.config/rclone/rclone.conf:ro  #optional
        - my-volume:/data

Usage

you can use autorestic to show all buckups such as

docker exec -it autorestic autorestic exec -av -- snapshots

and also use restic directly such as

docker exec -it autorestic restic

License

MIT © Uglyboy

Tag summary

Content type

Image

Digest

sha256:63ca89849

Size

58.1 MB

Last updated

8 months ago

docker pull guixi/autorestic