backup-docker/entrypoint.sh
2021-03-29 22:28:09 +02:00

10 lines
305 B
Bash
Executable File

#!/bin/sh
set -e
[ -z "${RCLONE_REMOTE}" ] && echo "\$RCLONE_REMOTE is not set" && exit 1
[ -z "${RCLONE_CONFIG}" ] && echo "\$RCLONE_CONFIG is not set" && exit 1
[ -z "${RESTIC_PASSWORD}" ] && echo "\$RESTIC_PASSWORD is not set" && exit 1
restic -r "rclone:$RCLONE_REMOTE" --verbose backup "/backup"