A container to run rsnapshot to back up local and remost hosts
50K+
A container running rsnapshot for the purpose backing up remote filesystems via ssh
Image hosted at: ghcr.io/jchonig/rsnapshot
docker create \
--name=rsnapshot \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-v </path/to/appdata/config>:/config \
-v </path/to/backup_root>:/backup \
--restart unless-stopped \
ghcr.io/jchonig/rsnapshot
Compatible with docker-compose v2 schemas.
---
version: "2"
services:
rsnapshot:
image: ghcr.io/jchonig/rsnapshot
container_name: rsnapshot
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- </path/to/appdata/config>:/config
- </path/to/backup_root>:/backup
restart: unless-stopped
| Env | Function |
|---|---|
| PUID=1000 | for UserID - see below for explanation |
| PGID=1000 | for GroupID - see below for explanation |
| TZ=UTC | Specify a timezone to use EG UTC |
| Volume | Function |
|---|---|
| /config | All the config files reside here |
| /backup | Root of backup dirs |
| /data/* | Local filesystems to be backed up |
env in
the config directory. This file is sourced by the shell.57 17 * * * rsnapshot -c /config/rsnapshot/HOSTNAME.conf hourly
36 1 * * 0-5 rsnapshot -c /config/rsnapshot/HOSTNAME.conf daily
36 1 * * 6 rsnapshot -c /config/rsnapshot/HOSTNAME.conf weekly && rsnapshot -c /config/rsnapshot/HOSTNAME.conf daily
36 0 1 * * rsnapshot -c /config/rsnapshot/HOSTNAME.conf monthly
Host *
PasswordAuthentication no
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Host HOSTNAME
IdentityFile ~/.ssh/KEYNAME
Content type
Image
Digest
sha256:dc0414111…
Size
22.9 MB
Last updated
6 days ago
docker pull jchonig/rsnapshot