Reputation: 643
I would like to lower the cost paying to Amazon. There are stopped instances that I want to backup and save on my local server, on-prem.
After creating an image from the instance, is there any way I can copy AMI to my local server and remove it from Amazon. So in a day, I will need back, it can transfer back from my local server to Amazon to use it again?
The instance first created on Amazon.
I rather a way to save instance on-premise as a file and not as a virtual server.
The main issue is: How can I transfer and save the image of an instance, that created on Amazon, as a file to the local server and how I can return it back to be in Amazon, in case I need to build the instance again.
Is there any way to do it?
Thanks a lot!
Upvotes: 0
Views: 6159
Reputation: 41
You need a tool to get what you want. Take eg Cloudberry and create an image and store it at Amazon and then restore and things are done. This is the best option for you. No other ways.
Upvotes: 0
Reputation: 126
You can use some backup software (duplicati, cloudberry, or anything else):
And the last, but not least thing: Good luck!)))
Upvotes: 3
Reputation: 6804
You can create an image file from your current drive but it will be quite expensive:
dd if=/dev/xvd0 of=drive.img ...
to copy volume to a filersync
/ ftp / etc the file to your local drive.You will be billed for the second instance and for the transfer. When you want to restore the machine - you'll be billed too.
Have you checked free tier? You have a year of free access to AWS for small instances and volumes.
Upvotes: 0
Reputation: 1105
You would need to use the VM Import/Export Tool for that. Read the docs to make sure you know how to upload again.
As to the cost, I am not sure how Amazon configures the cost, that is something you have to check out from your account. Once you create the image it is on your account. Even after you download it, not sure when AWS charges you or not.
Upvotes: 2