自动化Linux EBS快照备份和清理快照、备份、Linux、EBS

2023-09-11 08:38:25 作者:逗比逗比闪亮亮

有什么好看的更新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.