简体   繁体   English

计划的Cloudbees MySql备份

[英]Scheduled Cloudbees MySql Backup

This may be a stupid question, but after hours of googleing i cant find a suitable answer to this.. 这可能是一个愚蠢的问题,但是经过数小时的搜索,我找不到合适的答案。

We have a buisness critical application running on cloudbees. 我们有一个在Cloudbees上运行的商务关键应用程序。 The sourcecode is backed up properly and we want the same for our db. 源代码已正确备份,我们希望数据库也一样。 Cloudbees doc says: Cloudbees doc说:

"CloudBees MySQL databases are backed by EBS volumes on Amazon EC2 which provides a first layer of storage redundancy. EBS volumes are backed up to S3 every 24 hours for disaster recovery and are not generally available for customer use on multi-tenant MySQL clusters. Customers using Dedicated MySQL instances can request rollbacks to previous backup snapshots by filing a support ticket." “ CloudBees MySQL数据库由Amazon EC2上的EBS卷支持,这提供了第一层存储冗余。EBS卷每24小时备份到S3以进行灾难恢复,并且通常不提供给客户用于多租户MySQL群集。”使用专用的MySQL实例可以通过提交支持通知单来请求回滚到以前的备份快照。”

So basicly we are protected out of the box in case of emergencies, but not if an employee accidentally deletes something he should not. 因此,从根本上讲,我们在发生紧急情况时可以开箱即用,但如果员工意外删除了他不应该删除的内容,则不会受到保护。

So my question is: How can we automaticly do a backup of a cloudbees mysql db every night? 所以我的问题是:我们如何每天晚上自动备份cloudbees mysql数据库? We have amazon S3 storage where it could be put. 我们有可以放置它的Amazon S3存储。

Any ideas? 有任何想法吗?

You can use a command line script that backups your Databases to your S3 account quite easily, and run it as often as you like. 您可以使用命令行脚本轻松地将数据库备份到S3帐户,并根据需要运行它。 I had exactly the same problem a while back, and wrote up this handy tutorial . 不久前,我遇到了完全相同的问题,并撰写了这个方便的教程 It should be perfect for what you want to do. 它对于您想做的事情应该是完美的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM