Error scheduling backup every ten minutes in AWS Backup

0

I'm trying to schedule an EBS backup every ten minutes. Lifecycle Manager only allows you to go down to an hour. Same story for AWS Backup, but it gives you the the ability to write a cron expression. So I put in a cron for every ten minutes that looks like this:

cron(* 0/10 * * * *)

But I receive the following error: "Support for specifying both a day-of-week AND a day-of-month parameter is not implemented."

I'm far from a cron job guru but it looks like I can't have an asterisk for both the day of week and day of month parameter in the cron job, but I'm not sure how else to set it to every ten minutes without specifying both. Is that a problem with my cron expression or just a lack of capability on AWS Backup?

AWS
AWSJoe
已提问 2 年前1131 查看次数
1 回答
0
已接受的回答

Please look at this document for cron expressions used by Cloudwatch Events (same is also used in AWS backups) - https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html

There is an example of every 15 minutes which is 0/15 * * * ? * So in your case 0/10 * * * ? * should work as per the document

profile pictureAWS
专家
已回答 2 年前
  • Ahh makes sense. The cron you wrote out was correct, I see my mistake. That being said, it popped an error that said "The interval between backup jobs shouldn't be less than 60 minutes." Looks like AWS Backup doesn't have the capability to run backups for jobs that are less than 60 minutes apart. Thanks!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则