创建 Amazon S3 的 Amazon EC2 备份解决方案

发布于 2024-08-04 14:02:25 字数 384 浏览 4 评论 0原文

我目前使用 Amazon S3 作为本地计算机的备份位置 - 主要使用 JungleDisk 每晚将所有本地文件备份到我的 S3 帐户。

我一直在考虑为远程文件创建更智能的备份解决方案 - Windows 和 Linux 机器上的网站,以及 SQL Server 和 MySQL 数据库。

我一直在考虑创建一个可以在云中运行的 Amazon EC2 实例作为我的远程备份机器的想法 - 理想情况下,某种脚本或时间表会触发机器启动,当它启动时,它将执行各种操作用于连接和备份我的 Web 服务器的工具或脚本,将所有内容备份到我的 Amazon S3 帐户。希望完成后可以将实例编程为关闭,从而节省执行时间。

我是在做梦吗?这有可能吗?有人能指出我正确的方向吗?

谢谢,

GW

I currently use Amazon S3 as a backup location for my local machines - Primarily using JungleDisk to backup nightly all my local files to my S3 account.

I have been looking at creating a more intelligent backup solution for remote files - Websites on Windows and Linux boxes, along with SQL Server and MySQL databases.

I have been pondering the idea of creating an Amazon EC2 instance which can operate in the cloud as my remote backup machine - Ideally, some sort of script or schedule would trigger the machine to start, and when it does, it would execute a variety of tools or scripts to connect to and back-up my web servers, backing everything up to my Amazon S3 account. Hopefully, when complete the instance can be programmed to shut-down saving execution time.

Am I dreaming? Is this a possibility? Can anyone point me in the right direction?

Thanks,

GW

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

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

发布评论

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

评论(3

我也只是我 2024-08-11 14:02:25

对于将 EC2 实例作为我的动态 rsync 机器,我也有完全相同的想法。刚刚在我们的博客上写了一篇关于它的文章,但基本上解决方案确实是创建一个 EC2 卷,而不是 S3,并动态启动和关闭 EC2 实例,在您想要备份时安装该卷并 rsync 到它。

请在此处查看我的条目:使用 Amazon EC2/EBS/S3 进行自动备份

I had the exact same thought about getting an EC2 instance to be my dynamic rsync machine. Just wrote an entry about it on our blog, but basically the solution is indeed to create an EC2 volume, not S3 and dynamically startup and shutdown an EC2 instance, mount the volume and rsync to it whenever you want to backup.

See my entry here: Using Amazon EC2/EBS/S3 for automated backups

会发光的星星闪亮亮i 2024-08-11 14:02:25

您正在寻找什么样的指点?这听起来是一个完全可行的想法。有多种库可以通过 Python 或 Ruby 等脚本语言访问 EC2 和 S3。您将创建一个机器实例,该实例启动、从配置文件中读取以找出要连接到的机器、远程登录、获取可能存在的文件或数据库转储的新版本、将其上传到 S3,以及最终自行关闭。

What sort of pointing are you looking for? This sounds like a perfectly workable idea. There are a variety of libraries to access both EC2 and S3 from a scripting language such as Python or Ruby. You would create a machine instance that starts up, reads from a configuration file to find out which machine(s) to connect to, logs in remotely, fetches new versions of files or database dumps that might be present, uploads that to S3, and finally shuts itself down.

月下凄凉 2024-08-11 14:02:25

如果您喜欢按照自己想要的方式自行执行备份过程,

那么我认为 S3CMD 是您最好的解决方案。您可以像访问文件夹一样访问 amazon S3,并通过 Cron Job 执行您想要的所有操作。想了解更多,就来看看吧。

http://s3tools.org/s3cmd

If you like to do the backup process by your self and the way you want,

then S3CMD is your best solution I think. You can access the amazon S3 like a folder and do everything you want from Cron Job. To know more about it, have a look.

http://s3tools.org/s3cmd

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