docker-bits/lsio/rsnapshot/docker-run.sh
2023-04-26 00:53:18 +00:00

18 lines
1020 B
Bash

# [Rsnapshot](http://www.rsnapshot.org/) is a filesystem snapshot utility based
# on rsync. rsnapshot makes it easy to make periodic snapshots of local
# machines, and remote machines over ssh. The code makes extensive use of hard
# links whenever possible, to greatly reduce the disk space required.'
. ./.env
docker run -d \
--name=rsnapshot \
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
-e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \
-p 80:80 `# Application WebUI` \
-v ${BASEDIR:-/volume1/docker}/rsnapshot/config:/config `# Contains all relevant configuration files.` \
-v ${BASEDIR:-/volume1/docker}/rsnapshot/.snapshots:/.snapshots `# optional` `# Storage location for all snapshots.` \
-v ${BASEDIR:-/volume1/docker}/rsnapshot/data:/data `# optional` `# Storage location for data to be backed up.` \
--restart unless-stopped \
ghcr.io/linuxserver/rsnapshot