Accéder au contenu principal

A very simple bash script to snapshot all your AWS EC2 instances

instances=$(aws ec2 describe-instances --output text --query 'Reservations[].Instances[].InstanceId')
echo
echo BACKUP STARTED...
for instance in $instances; do
echo ----------------------------------
echo snapshoting instance $instance ...
volumes=$(aws ec2 describe-volumes --output text --filters Name=attachment.instance-id, \
Values=$instance --query 'Volumes[].VolumeId')
for volume in $volumes; do
echo snapshoting $volume ...
aws ec2 create-snapshot --volume-id $volume --description "$volume volume snapshot."
done
echo ...instance $instance is backed up.
done
echo ----------------------------------
echo BACKUP COMPLETED...
echo
view raw gistfile1.txt hosted with ❤ by GitHub

Commentaires

Posts les plus consultés de ce blog

A simple temperature and humidity MQTT sensor for Home Assistant, based on Arduino MKR1000

This article describes a way to create and manage multiple very simple temperature and humidity sensors based on Arduino MKR1000 , and being able to send their information to Home Assistant . The Arduino MKR1000 is a pretty cool device, which has an integrated Wifi chip, optimized for low power consumption. This post is not addressing the power aspect, but keep in mind that a possible enhancement of the presented configuration could be to leverage the low power and sleep mode possibilities, in order to run the sensor on battery, instead of having it constantly plugged in. Without taking that into consideration, my requirements were the following: - To be able to plug in a sensor in each room of my home, connected to my Wifi network; - To read humidity and temperature every few minutes; - To collect all data on a pre-configured Home Assistant server; - To be able to re-connect automatically, whenever an Internet, wifi or power outage occurs (and in my place, you can expect all t...

Introduction of an IT Project Management Methodology in a fast-growing company

This article from the PMI Knowledge Shelf explains the rationale behind the creation of an in-house, customized project management methodology, iMAP, at a rapidly growing pharmaceutical company. The authors also describe the priorities that were selected to start with its implementation: a solid project initiation, a clear project life cycle, a special attention to risk management, a first step in reporting standardization, and specific attention to the activities necessary for the transition to operations. They provide an overview of their approach to IT project governance and how a defined project management methodology is the key for its success. https://docs.google.com/file/d/0B40T8ZW4GEUJNmYxMTJhY2YtODY3Mi00NWEwLWExZDMtMmNlMGNiZTUyZWEw/edit