1
Fork 0
mirror of https://github.com/Steffo99/backup-duplicity.git synced 2024-12-22 11:34:22 +00:00

Tweak entrypoint

This commit is contained in:
Steffo 2023-06-18 21:32:31 +02:00
parent 4198d701ff
commit 16151233a2
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -6,10 +6,12 @@ case "$MODE" in
/etc/periodic/daily/backup.sh /etc/periodic/daily/backup.sh
echo "Running cron for daily backups..." echo "Running cron for daily backups..."
crond -f -l 0 crond -f -l 0
echo "Cron has exited."
;; ;;
restore) restore)
echo "Restoring from latest backup..." echo "Restoring from latest backup..."
/usr/lib/backup-duplicity/restore.sh /usr/lib/backup-duplicity/restore.sh
echo "Done."
;; ;;
*) *)
echo "No such mode." >> /dev/stderr echo "No such mode." >> /dev/stderr