ansible/playbooks/apps/files/bin/restic-backup

7 lines
206 B
Text
Raw Permalink Normal View History

2024-10-11 16:42:01 +02:00
#!/bin/bash
set -euo pipefail
killall restic || true
source /mnt/data/bin/resticenv
/usr/bin/restic unlock
/usr/bin/restic backup --exclude-file /mnt/data/bin/restic-excludes /mnt/data/ /var/spool/cron/ $@