feat: support trigger a backup manually

This commit is contained in:
ttionya
2023-03-18 21:34:46 +08:00
parent 94c6d9950a
commit 434bfed0c0
+9
View File
@@ -53,5 +53,14 @@ configure_postgresql
configure_timezone
configure_cron
# backup manually
if [[ "$1" == "backup" ]]; then
color yellow "Manually triggering a backup will only execute the backup script once, and the container will exit upon completion."
bash "/app/backup.sh"
exit 0
fi
# foreground run crond
exec supercronic -passthrough-logs -quiet "${CRON_CONFIG_FILE}"