Εμφάνιση αναρτήσεων με ετικέτα Amazon Web Services. Εμφάνιση όλων των αναρτήσεων
Εμφάνιση αναρτήσεων με ετικέτα Amazon Web Services. Εμφάνιση όλων των αναρτήσεων

Πέμπτη 27 Ιανουαρίου 2011

Amazon EC2 Instances Backed-Up to S3

There are several steps in order to backup your ami to S3 bucket. All the commands should be executed inside the AMI.


1. upload key-xxxxxxxxxxx.pem and cert-xxxxxxxxxxxxx.pem to the box ex. /root/key-xxxxxxxxx.pem

2. run the command inside the ami(the amazon tools are pre-installed) ec2-bundle-vol -d /mnt -k /root/pk-xxxxxxx.pem --cert /root/cert-xxxxxxxx.pem -u

3. When the (2) command is completed there should be an image manifest file inside the /mnt dir

4. Upload to S3 ec2-upload-bundle -b -m /mnt/image.manifest.xml -a access_key -s secret_access_key --retry