aws ami snapshot 備份

參考網路上的修改過 https://simplyopensource.blogspot.tw/2014/04/script-to-create-daily-ami-of-aws.html https://github.com/colinbjohnson/aws-missing-tools/blob/master/ec2-automate-backup/ec2-automate-backup.sh 使用指令 amibackup.sh -i i-0102e3b13418794d4 -r ap-northeast-2 -d 1 » /root/ami_backup/AmiBackupLog.log 2>&1 #!/bin/bash # ReadMe - How to use this script # cyfbackup.sh -r [region] -i [instance name] # -d [How may days ago to delete] -t [emulate today is how many days ago] #Define TextColor Varible to use #TextRedBgYellow="\e[0;31;43m" TextGreen="\e[0;32m" TextRed="\e[0;31m" TextYellow="\e[0;33m" TextBlue="\e[0;36m" EndText="\e[0m" #Define test_day for Emulate Today is some days ago. declare -i test_day=0 #get Paramenter -d beforeDay2Del, -i InstanceID, -r Region while getopts :d:i:r:t:end opt; do case $opt in d) remainDay=$OPTARG;; i) instance_id=$OPTARG;; r) region=$OPTARG;; t) test_day=$OPTARG;; *) echo “Option is invalid, Please check.”; exit 1;; esac done ...

2017-05-23 · 5 min · 877 words · Me

[轉]在 MAC 上利用 Docker 快速建立 PHP+Nginx+Mysql+Memcached 開發環境

https://cola.workxplay.net/devops-docker-development-environment/ https://github.com/docker/kitematic https://www.docker.com/products/docker-toolbox

2017-05-11 · 1 min · 3 words · Me

[轉]架構師觀點 - 轉移到微服務架構的經驗分享 (Part 1)

http://columns.chicken-house.net/2017/04/15/microservice8-case-study/ https://nickcraver.com/blog/2016/02/17/stack-overflow-the-architecture-2016-edition/

2017-05-11 · 1 min · 2 words · Me

adguard

http://columns.chicken-house.net/2017/04/15/microservice8-case-study/ https://nickcraver.com/blog/2016/02/17/stack-overflow-the-architecture-2016-edition/

2017-05-11 · 1 min · 2 words · Me

Schedule daily AMI of AWS [轉]Automate EBS Volume Backups – AWS Cli+Bash

https://www.linuxtutorial.co.uk/automate-ebs-volume-backups-bash/ https://github.com/colinbjohnson/aws-missing-tools/tree/master/ec2-automate-backup https://simplyopensource.blogspot.tw/2014/04/script-to-create-daily-ami-of-aws.html https://simplyopensource.blogspot.tw/2016/02/script-to-delete-ami-with-attached.html https://www.flynsarmy.com/2015/06/how-to-schedule-daily-rolling-ebs-snapshots/

2017-05-09 · 1 min · 5 words · Me