Sign inSign up

chappio/rsnapshot

By chappio

Updated almost 9 years ago

An easy-to-use rsnapshot container

Image
0

1.1K

chappio/rsnapshot repository overview

rsnapshot in docker

Just... rsnapshot

Usage

docker run \
    --rm \
    -v <path to config>:/config
    -v <path to snapshots>:/snapshots
    chappio/rsnapshot
    daily

Parameters

  • --rm - delete the container after execution
  • -v /config - mount the volume which contains the rsnapshot configurations
  • -v /snapshots - mount the volume which contains the snapshots
  • daily - pass arguments to rsnapshot

Example

So if you wish to create a backup of the /mnt/shares folder you:

Create a new configuration:

docker run --rm -v /path/to/configs:/config chappio/rsnapshot

Update your configuration:

nano /path/to/configs/rsnapshot.conf

Run the backup:

docker run --rm -v /path/to/configs:/config -v /path/to/snapshots:/snapshots -v /mnt/shares:/mnt/shares:ro chappio/rsnapshot daily

docker-compose

services:
    rsnapshot:
        image: chappio/rsnapshot
        volumes:
          - ./config:/config
          - ./snapshots:/snapshots
          - /mnt:/mnt

And then execute:

docker-compose run --rm rsnapshot daily

Tag summary

Content type

Image

Digest

Size

90 MB

Last updated

almost 9 years ago

docker pull chappio/rsnapshot