You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I added Backup profiles with automated job execution enabled, I got an enormous number of backups today.
Description
Last week, I added automated backups to my existing backup profiles. I did this on my production server directly, since I wanted to see if it worked over the weekend since I had to do some editing to cron execution on the server (managed).
My two backup profiles:
data backup (/user dir without plugins/ themes), set to 'Every day at 00'
system backup (complete grav backup (default), set to 'Every week on Monday at 00'
This morning I was a bit confused since I had more than 100 backups. After checking the user/config/backups.yaml file, I noticed that there was a misconfiguration:
'Every day at 00' matches * 0 * * * in Grav, but should be 0 0 * * *
'Every week on Monday at 00' matches * 0 * * 1 in Grav but should be 0 0 * * 1
Because of that, Grav did a backup every day at 00:00 AND every minute past that hour, resulting in 60 backups per day instead of one.
Resolution
Please fix this issue by adding a minute field or replace the cron field with a text field like in the scheduler. I'd prefer the text field, although I really like how simple the cron field is for not experienced users.
But I could do some fancy stuff like 0 */6 * * * which isn't possible with the cron field and it will render as an error in the admin panel.
The text was updated successfully, but these errors were encountered:
It seems to be a problem caused by the jqCron utility in cron-ui.js provided by Admin. The incorrect schedule (missing minute 0) is already incorrect when received by the server.
Since it is an Admin issue and not a server issue, you could use the following workaround:
Edit user/config/backup.yaml locally and move it to the server using ftp, or scp.
Or edit user/config/backup.yaml remotely using ssh.
I only rarely use the admin panel for configuration, so for me, it's not a big problem. But I created this issue to let the Grav team & community know that this problem exists.
There surely are users who only work with the admin panel and don't know anything about cron, at latest when it comes to a client who thinks he knows he does.
Since this is an admin issue, could anyone from the Grav team transfer this issue to the admin plugins? Thanks.
After I added Backup profiles with automated job execution enabled, I got an enormous number of backups today.
Description
Last week, I added automated backups to my existing backup profiles. I did this on my production server directly, since I wanted to see if it worked over the weekend since I had to do some editing to cron execution on the server (managed).
My two backup profiles:
/user
dir without plugins/ themes), set to 'Every day at 00'This morning I was a bit confused since I had more than 100 backups. After checking the
user/config/backups.yaml
file, I noticed that there was a misconfiguration:* 0 * * *
in Grav, but should be0 0 * * *
* 0 * * 1
in Grav but should be0 0 * * 1
Because of that, Grav did a backup every day at 00:00 AND every minute past that hour, resulting in 60 backups per day instead of one.
Resolution
Please fix this issue by adding a minute field or replace the cron field with a text field like in the scheduler. I'd prefer the text field, although I really like how simple the cron field is for not experienced users.
But I could do some fancy stuff like
0 */6 * * *
which isn't possible with the cron field and it will render as an error in the admin panel.The text was updated successfully, but these errors were encountered: