Hi all.
I’m very frustated because I feell imposible to set scheduling (cron format) policies by CLI.
Reference just says:
–snapshot-time-crontab Semicolon-separated crontab-compatible expressions (or ‘inherit’)
but no examples.
I have tried as is but I get sh erros:
kopia policy set --snapshot-time-crontab ;;;;* global
Then this:
kopia policy set --snapshot-time-crontab “;;;;*” global
but getting this error:
Setting policy for root@kopia:/global
setting cron snapshot times to [* * * * ]
ERROR scheduling policy: invalid scheduling policy: invalid cron expression ""
Then I have tried every single conbination I have imagined for typing the cron expression and I always get the same error:
ERROR scheduling policy: invalid scheduling policy: invalid cron expression
I have testted this cron expresion * * * * * and others as well but always checking them first in web UI, so all of them are correct dor the web UI. In fact my first attempt was for this cron expression: 33 3 * * *
What the hell I’m doing wrong? Or maybe this is a bug?
I have realized about another problem. Setting global as target doesn’t afect the global policies but the /global directorie instead…
but using -global as target (following reference) gives this error:
kopia: error: unknown short flag ‘-g’, try --help
Sorry, but I cannot find file to edit and PR in the github repo. This is the closest one, but I don’t find nothing for common commands…
Can you help me about this…?