[ec2-beta] Automatic snapshotting of EBS
Thomas Butter
thomas at butter.eu
Wed Apr 15 17:27:53 BST 2009
Hi Micah,
you could use the script below in a cronjob. EBS snapshots are
instantenous. If your database does proper flushing of the transaction
logs no freezing at the db/fs level is needed.
export EC2_HOME=/PATH/TO/EC2-API-TOOLS
export JAVA_HOME=/PATH/TO/YOUR/JAVA/HOME
export PK_FILE=/PATH/TO/YOUR/EC2_PRIVATE_KEY
export CERT_FILE=/PATH/TO/YOUR/EC2_CERT
export VOLUME=VOLUME-ID (e.g. vol-12345678)
$EC2_HOME/bin/ec2-create-snapshot -K $PK_FILE -C $CERT_FILE $VOLUME
Regards,
Thomas
On 15.04.2009, at 17:57, Micah Walter wrote:
> Hi,
> I would like to set up auto-snapshotting of my EBS volume mounted on
> the Ubuntu-beta instance I am running.
>
> Is there any documentation available or synopsis of what is required?
>
> I found a few things online but they look a little out-dated...
>
> thanks
> micah
>
> --
> Ec2-beta mailing list
> Ec2-beta at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ec2-beta
>
More information about the Ec2-beta
mailing list