diff --git a/rootfs/app/backup.sh b/rootfs/app/backup.sh index 3fa5957..e078e42 100755 --- a/rootfs/app/backup.sh +++ b/rootfs/app/backup.sh @@ -23,6 +23,13 @@ cleanup() { echo "Removed temporary file" } +trap interrupt INT +interrupt() { + echo "Backup interrupted" + echo "interrupted" > "${STATUS_FILE}" + exit 1 +} + if [ ! -f "${RCLONE_CONFIG_FILE}" ]; then echo "Rclone config file not found" exit 1