【发布时间】:2016-08-02 17:42:11
【问题描述】:
我们在下面运行这个脚本,这不会删除任何早于一天的东西我们缺少什么?
我们从github.com/colinbjohnson/aws-missing-tools/tree/master/ec2-automate-backup得到脚本
ec2-automate-backup -r "us-west-2" -s tag -t "Backup,Values=true" -k 1 -p -h > /data/scripts/ec2-automate-backup.log
ec2-automate-backup 拍摄的快照将有资格在以下日期之后进行清除(从纪元开始以秒为单位给出的清除日期):1458239434。 使用以下标签标记快照 snap-b9fffbe6: Key=CreatedBy,Value=ec2-automate-backup Key=InitiatingHost,Value='ip-10-220-5-100' Key=PurgeAfterFE,Value=1458239434 Key=PurgeAllow,Value =真 使用以下标签标记快照 snap-8c457dc9: Key=CreatedBy,Value=ec2-automate-backup Key=InitiatingHost,Value='ip-10-220-5-100' Key=PurgeAfterFE,Value=1458239434 Key=PurgeAllow,Value =真
【问题讨论】:
-
已解决。只需以这种方式运行命令。 ec2-automate-backup.sh -r "us-west-2" -s tag -t "Backup,Values=true" -k 5 -p -h > /data/scripts/ec2-automate-backup.log跨度>
标签: ec2-api-tools