A resticprofile image built for long-lived containers with database and backup utilities.
It overrides the official image's entrypoint and command to execute crond on start, so containers run indefinitely and can be used to schedule tasks.
Images are available on Docker Hub at alexycodes/resticprofile and can be installed easily on Unraid from the app store.
docker run -d \
--name resticprofile \
-e TZ=Your/Timezone \
-v /path/to/profiles:/resticprofile \
-v /path/to/passfiles:/pass \
-v /path/to/data:/data \
-v /path/to/crontab:/crontab \ # optional: mount a crontab to schedule tasks
alexycodes/resticprofileservices:
resticprofile:
image: alexycodes/resticprofile
environment:
- TZ: Your/Timezone
volumes:
- /path/to/profiles:/resticprofile
- /path/to/passfiles:/pass
- /path/to/data:/data
- /path/to/crontab:/crontab # optional: mount a crontab to schedule tasksThe following example overrides the default crond command to run a resticprofile command directly and exit.
docker run --rm \
-e TZ=Your/Timezone \
-v /path/to/profiles:/resticprofile \
-v /path/to/passfiles:/pass \
-v /path/to/data:/data \
alexycodes/resticprofile \
resticprofile backupThe following is a partial example demonstrating how to reference paths inside the container. See the full documentation for all configuration options.
# /resticprofile/profiles.yaml
default:
password-file: /pass/example
backup:
source:
- /dataOptionally, a crontab configuration file can be mounted at /crontab to schedule tasks. The entrypoint automatically loads it on start.
The following example runs the default profile's backup command every day at midnight.
0 0 * * * cd /resticprofile && resticprofile backup
Images have the following packages installed on top of the official resticprofile images:
aclbashbtrfs-progsca-certificatescurlfindmntfuselibxxhashlogrotatelz4-libsmariadb-clientmariadb-connector-cmongodb-toolsopensslpostgresql-clientsqlitesshfstzdataxxhash