当前位置:网站首页>Containerization | Scheduled Backups in S3

Containerization | Scheduled Backups in S3

2022-08-10 15:21:00 InfoQ

Recovering RadonDB MySQL Cluster Data in S3 Backup
”In the article, we show the specific backup and recovery of cluster data in S3 storageOperation process, but only manual backup.
RadonDB MySQL Kubernetes 2.2.0
Added support for scheduled backup of S3 (NFS support is also on the way).

Let's take a look at how this feature is used!

How to open?

Cron expressions (similar to Linux's crontab timers) can be used to specify timing policies for backups.You just need to set
backupSchedule
spec
in the cluster's YAML filediv>
field.The format is as follows:

...
spec:
replicas: 3
mysqlVersion: "5.7"
backupSchedule: "0 00 * * * *" # daily
...

Delete the field to cancel the scheduled backup task.

Cron expression format

Cron expression format is: second minute hour day month week, that is, a time combination consisting of 6 fields separated by spaces.

null
Note: The [Month] and [Week] fields are not case sensitive, that is, SUN, Sun and Sun are all accepted.

Special Character Description

null

Predefined Schedule

You can replace the Cron expression with the following predefined time to make the setting more user-friendly.

...
spec:
replicas: 3
mysqlVersion: "5.7"
backupSchedule: @daily # 0 0 0 ** * Once a day
...

null
Learn to experience it!
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208101446452106.html