Amazon EC2 – Snapshot Creation

#!/bin/bash

export EC2_HOME=/opt/aws/apitools/ec2

export AWS_SECRET_KEY=****************

export AWS_ACCESS_KEY=*****************

export JAVA_HOME=/usr/lib/jvm/jre

/opt/aws/bin/ec2-create-snapshot vol-******* –description “Daily Data Snapshot” –region eu-west-1

/opt/aws/bin/ec2-create-snapshot vol-******* –description “Daily Root Snapshot” –region eu-west-1

—– ends file

This might help someone looking to add a  cron tab entry for the ec2-user running AMI Linux, X64

 

 

×

Comments are closed.