restic-compose-backup/src/entrypoint.sh

12 lines
185 B
Bash
Executable File

#!/bin/sh
# Dump all env vars so we can source them in cron jobs
rcb dump-env > /env.sh
# Write crontab
rcb crontab > crontab
# start cron in the foreground
crontab crontab
crond -f