将自定义时间表添加到AWS EC2生命周期经理

发布于 2025-02-01 07:42:25 字数 225 浏览 2 评论 0原文

如何使用Cron表达式安排季度备份?就像1月1日,4月1日,7月1日和10月1日在每凌晨12:00的备份一样。

How can I use cron expression to schedule quarterly backup? Like Backup at 12:00AM on every 1st January, 1st April, 1st July and 1st October.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑着哭最痛 2025-02-08 07:42:25

尝试使用以下方式设置事件:

cron(0 12 1 1/3 ? *)

这转化为:

1/3 - >每三个月

1 - >在一个月的第一天

0 12在12 pm

的每天或每天的值之一必须是问号(?)

ps ps 。请记住,时间在utc+0中。

在AWS中的预定表达式上更多

Try setting up the event with this:

cron(0 12 1 1/3 ? *)

This translates to:

1/3 -> every third month

1 -> on the first day of the month

0 12 at 12 PM

One of the day-of-month or day-of-week values must be a question mark (?)

PS. Keep in mind that time is in UTC+0.

More on Scheduled Expressions in AWS

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文