ansible-role-borg-backup/templates/ansible_entry.sh.j2

9 lines
408 B
Plaintext
Raw Normal View History

2023-10-09 02:22:30 +02:00
#!/bin/sh
# We need to copy ssh keys at runtime because of the built-in volumes in the upstream Docker image definition
if [ -f "/{{ borg_ssh_key_name }}.pub" ]; then mv /{{ borg_ssh_key_name }}.pub /root/.ssh; fi
if [ -f "/{{ borg_ssh_key_name }}" ]; then mv /{{ borg_ssh_key_name }} /root/.ssh; fi
echo "$BACKUP_CRON" > /etc/borgmatic.d/crontab.txt
exec env SUPERCRONIC_EXTRA_FLAGS=-debug /entry.sh "$@"