2021-04-21 00:55:42 +00:00
|
|
|
# [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.'
|
2021-04-10 10:16:29 +00:00
|
|
|
|
2023-04-26 00:53:18 +00:00
|
|
|
. ./.env
|
2021-04-10 10:16:29 +00:00
|
|
|
docker run -d \
|
|
|
|
--name=rsnapshot \
|
2022-04-02 00:45:58 +00:00
|
|
|
-e PUID=${PUID:-1024} `# for UserID` \
|
|
|
|
-e PGID=${PGID:-100} `# for GroupID` \
|
2023-02-26 14:51:38 +00:00
|
|
|
-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).` \
|
2021-04-10 10:16:29 +00:00
|
|
|
-p 80:80 `# Application WebUI` \
|
2024-01-26 01:18:09 +00:00
|
|
|
-v ${BASEDIR:-/volume1/docker}/rsnapshot/config:/config `# Persistent config files` \
|
2021-04-10 10:16:29 +00:00
|
|
|
-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
|