自动化Linux EBS快照备份和清理 [英] Automating Linux EBS snapshots backup and clean-up

查看:214
本文介绍了自动化Linux EBS快照备份和清理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么好看的更新shell脚本进行EBS快照S3和清理旧的快照?

Are there any good updated shell scripts for EBS snapshots to S3, and clean-up of older snapshots?

我看了看,通过SO,但大多是从2009年,指的是链接,要么损坏或过时。

I looked through SO, but mostly are from 2009, referring to link that either broken or outdated.

感谢。

推荐答案

请尝试以下shell脚本,我用它来创建快照,我的大部分项目,它工作得很好。

Try the following shell-script, I use this to create snapshot for most of my projects and it works well.

https://github.com/rakesh-sankar/Tools/blob/master/AmazonAWS/EBS/EBS-Snapshot.sh

您可以给我拉的请求/叉工程中添加的清洗行动的旧条目的功能。同时还要注意这个回购协议,当我发现有些时候我会更新code有清理功能。

You can give me pull-request/fork the project to add the functionality of cleaning-up the old entries. Also watch for this repo, when I find some time I will update the code to have clean-up functionality.

这篇关于自动化Linux EBS快照备份和清理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆