1
Fork 0
mirror of https://github.com/Steffo99/backup-duplicity.git synced 2024-12-22 03:34:17 +00:00
gestalt-amadeus/entrypoint.sh
2023-05-18 00:07:47 +02:00

17 lines
341 B
Bash
Executable file

#!/bin/sh
case "$MODE" in
backup)
echo "Running first backup..."
/etc/periodic/daily/backup.sh
echo "Running cron for daily backups..."
crond -f -d 5 -l 2 -L /dev/stdout
;;
restore)
echo "Restoring from latest backup..."
/usr/lib/backup-duplicity/restore.sh
;;
*)
echo "No such mode." >> /dev/stderr
;;
esac