Search code examples
amazon-web-servicesamazon-s3amazon-ec2

How can find out how much space my snapshots are taking in Amazon EC2


I am creating daily snapshots (backups) in Amazon Ec2, and I need to find out how much space the snapshots are taking so that I can remove them if they take up too much space. I have looked and I am unable to find what I need.

I know that its on S3, but I have not seen any bucket created here so that I can see that snapshot.

Also, is there a way to download a snapshot to my computer (where I can store it), and upload it when needed?


Solution

  • Snapshots are persisted to S3, but are not stored in buckets owned by the user - so you won't be able to see them there.

    To see how much space is being used by snapshots, you should be able to log in to the AWS Console through your web browser and see it under "Elastic Block Store", or if you've installed the command-line tools by running the ec2-describe-snapshots command you will see the following parameter returned:

    volume-size
    
        The size of the volume
    

    As for downloading your snapshots, it's possible with the non-Windows instance snapshots, but it's also quite involved. But here's the instructions.