sylvainjule / kirby-backups

Manage backups from the Kirby panel
MIT License
37 stars 2 forks source link

maximum backups ignored when using cron job with janitor #9

Closed arnoson closed 6 months ago

arnoson commented 8 months ago

I have setup maximum backups as shown in the readme but the option is ignored when I use a cron job with kirby janitor. So I guess when not using this plugin ui/api to create backups only janitor is involved. So I would have to create a cutsom web hook endpoint and copy the code from the backups/create-backup api route? Or is there also a way to trigger a backup via a web hook using this plugin directly?

sylvainjule commented 6 months ago

The plugin now exposes a webhook: https://your.domain/backups-webhook/{janitor.secret}/create-backup

arnoson commented 6 months ago

awesome, thank you!