Thursday, October 26, 2017

Downloading or Backing up an Image or Drive from AWS

So we have an  EC2 instance on AWS.  But we need to terminate it as the project has to give way to something urgent and therefore not on foreseeable future will it be used. So instead of accruing cost, (as an image cost something if its in AWS although it is not being used), we decided to download the image or drive directly on our drive and store it.

This is what we did.


  1. Create a snapshot of the existing image you want to download in AWS. 
  2. From that snapshot, create an image.
  3. Once the image is available, add that image as part of the EC2 Instance you wish to download.
  4. Create another image. Make sure this is bigger than the image that you want to backup. Basically this will hold the image backup
  5. Mount it as part of the EC2 Instance.


For this, this is what I have :




here,

  • /dev/sda1 is the source or what I will backup
  • /dev/sdf is a copy of /dev/sda1
  • /dev/sdg will contain the backup.

To get the available mountpoints that can be mounted :

execute :



As you can see..  /dev/sdf  (which is xvdf) is mounted as :



For /dev/sdg, the mountpoint is xvdg.


Since this is a new image, do the following commands :




Then mount  (make sure that the folder /mnt/image is available)\:




Afterwards, create an image :





Once created, go to /mnt/image and do a tar/gz. This is to compress it.





After which, you can now do an SCP to the machine and download the file.


102 comments:

  1. Replies
    1. Amazing Article, thank you!. I just wish to give you a big thumbs up for the excellent post. Kindly keep updating your blog. Java Developer is a dream career for IT students.To start wonderful Career to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training from India .

      or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

      Delete
    2. Great Article
      Cloud Computing Projects


      Networking Projects

      Final Year Projects for CSE


      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete

    3. Great Article
      Cloud Computing Projects


      Networking Projects

      Final Year Projects for CSE


      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. Those guidelines additionally worked to become a good way to
    recognize that other people online have the identical fervor like mine
    to grasp great deal more around this condition.


    AWS Training in Bangalore


    AWS Training in Bangalore

    ReplyDelete
  3. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    hadoop-training-institute-in-chennai

    ReplyDelete
  4. Appreciating the persistence you put into your blog and detailed information you provide.

    It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.

    AWS Training in Chennai

    ReplyDelete
  5. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    amazon-web-services-training-institute-in-chennai

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.

    Best Java Training Institute Chennai

    Amazon Web Services Training in Chennai

    ReplyDelete
  8. Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.
    Best selenium training Institute in chennai

    ReplyDelete
  9. Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.
    datascience training in chennai

    ReplyDelete
  10. All your hard work is much appreciated. Thanks for shraing.

    Aws Training in Hyderabad

    ReplyDelete
  11. Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.
    aws training in chennai
    Advanced aws training in chennai

    ReplyDelete
  12. Thank you for sharing wonderful information with us to get some idea about that content.
    Aws Training in Chennai

    ReplyDelete
  13. Thanks for sharing information. Your web-site is very cool. I am impressed by the details that you have on this blog. It reveals how nicely you perceive this subject

    aws training in chennai

    digital marketing training in chennai

    ReplyDelete
  14. Thanks for sharing the information, Salesforce experts a a lot of openings in multi-level companies, for more information n
    Salesforce Training in Hyderabad
    Salesforce Online Training in Bangalore
    Best Salesforce online Training

    ReplyDelete
  15. AWS Training in Bangalore - Live Online & Classroom
    myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.


    IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. You can find the best AWS Training in Chennai for learning. AWS Certification is fast becoming the must have certificate for any IT professional working with AWS. No specific programming knowledge is needed (though knowing a language would be advantageous) and no prior AWS experience required.you will be in high demand by many employers and will command a superior salary.

    ReplyDelete
  18. Amazon has a simple web services interface that you can use to store and retrieve any amount of data, at any time, from anywhere on the web. Amazon Web Services (AWS) is a secure cloud services platform, offering compute power, database storage, content delivery and other functionality to help businesses scale and grow.For more information visit.
    aws online training
    aws training in hyderabad
    amazon web services(AWS) online training

    ReplyDelete
  19. Really very nice blog information for this one and more technical skills are improve.....

    AWS Training In Chennai

    ReplyDelete
  20. Very interesting content which helps me to get the indepth knowledge about the technology. To know more details about the course visit this website.
    Selenium Training in Chennai
    Digital Marketing Training in Chennai
    JAVA Training in Chennai
    core Java training in chennai

    ReplyDelete
  21. Only here are the best winnings Online casinos Gaming casino.

    ReplyDelete
  22. I really want to thank you for such kind of wonderful blog posted for us.I expect this kind of updation soon in your page.
    Qtp training in Chennai
    Android Training in Chennai
    Digital Marketing Training in Chennai
    German Classes in Chennai

    ReplyDelete
  23. Htop solutions is the best Hadoop training institute in chennai. They provide classroom training for students with experienced staffs. For more details do check out the link.
    Hadoop Training In Chennai

    Contact: +91 9500020364

    ReplyDelete
  24. Алюминиевый профиль светодиодной ленты лучшее что я находил это в компании Ekodio, супер ребята рекоммендую.

    ReplyDelete
  25. Nice blog..! I really loved reading through this article. Thanks for sharing such a amazing post with us and keep blogging... best angularjs training institute in chennai | angularjs training in omr | angularjs training in chennai | angularjs training in velachery |

    ReplyDelete
  26. Thank you for the informative post about Security challenges in AWS , Found it useful . cloud migration services have now become secured and with no-risk

    Cloud Migration services

    Aws Cloud Migration services

    Azure Cloud Migration services

    Vmware Cloud Migration services

    ReplyDelete
  27. I have gone through your post and I found it very helpfull. Looking forward to see more post from you.

    Database Migration services

    Best Cloud Migration Tool

    Lia Infraservices

    ReplyDelete
  28. Really very happy to say,your post is very interesting to read.I never stop myself to say something about it.You’re doing a great job.Keep it up.

    AWS Training in Chennai / Best AWS Training in Chennai
    AWS Training Course in Chennai / Best AWS Training Institute in Chennai

    ReplyDelete
  29. I need to thank you for this very good read!! I definitely loved every little bit of it. I have you bookmarked to check out new things you post…
    aws certification

    ReplyDelete
  30. I really like and appreciate your work which is about AWS cloud computing. The article you have shared here is great. I read your post with carefully, the points you mentioned can be very helpful. It is nice seeing your wonderful post. Best AWS Training in Delhi

    ReplyDelete
  31. thanks for your information really good and very nice web design company in velachery

    ReplyDelete
  32. Hi, thank you very much for new information , i learned something new. Very well written. It was so good to read and usefull to improve knowledge. Keep posting. If you are looking for any python related information please visit our website
    python training in bangalore

    ReplyDelete
  33. Thanks for sharing this information!
    I totally agree with you. Your information is very interesting and important. I really like this information.Our easy web plans company is famous in Advanced AWS Online Training in Hyderabad .
    If you want to see our training venue then click on links:http://www.sacrostectservices.com/aws-online-training/
    Call Now: +91-9052483493
    Drop Mail: info@sacrostectservices.com

    ReplyDelete
  34. You have done really great job. Your blog is very unique and informative. Thanks

    AWS training marathahalli
    AWS training institutes in marathahalli

    ReplyDelete
  35. Thanks for sharing this information!REALLY HEALPFULL
    aws training in hyderabad

    ReplyDelete
  36. Thanks for sharing this information!REALLY HELPFULL

    ReplyDelete

  37. Best Article buy Pain Pills online Excellent post. I appreciate this site. Stick with it! Because the admin of this web page is working, no doubt very quickly it will be well-known, due to its quality contents.This website was how do you say it? Relevant!! Finally, I’ve found something that helped me.
    Best Article buy Roxicodone online Excellent post
    buy Xanax online
    buy Oxycodone online

    Best Article buy Pain Medications online Excellent post. I appreciate this site. Stick with it! Because the admin of this web page is working, no doubt very quickly it will be well-known, due to its quality contents.This website was how do you say it? Relevant!! Finally, I’ve found something that helped me.

    buy Research Chemicals online

    buy Roxicodone online

    buy Cbd Isolate online

    ReplyDelete
  38. Thanks for sharing useful information. I learned something new from your bog. Its very interesting and informative. keep updating. If you are looking for any Big Data related information, please visit our website bigdata training institute in bangalore.

    ReplyDelete
  39. Thanks a lot for sharing
    Having good health is what most people out there wants but can not achieve. some people takes buy ibogaine online AND buy weed online to get it.

    ReplyDelete


  40. 2 of 65
    comment

    Tuhin Pabna
    Attachments
    Nov 28, 2019, 9:29 AM
    to noyon0461


    2 Attachments

    keep up the good work. this is an Assam post. this to helpful, i have reading here all post. i am impressed. thank you. this is our digital marketing training center. This is an online certificate course
    digital marketing training in bangalore / https://www.excelr.com/digital-marketing-training-in-bangalore

    ReplyDelete
  41. Thank you so much for this nice information. And please keep update like this.

    AWS Training in Hyderabad

    ReplyDelete

  42. Nice information. Thanks for sharing content and such nice information for me. I hope you will share some more content about. Please keep sharing!

    best training institute in chennai for aws

    ReplyDelete
  43. Thanks for sharing your innovative ideas to our vision. I have read your blog and I gathered some new information through your blog. Your blog is really very informative and unique. Keep posting like this. Awaiting for your further update.If you are looking for any Data science related information, please visit our website Data science training institute in bangalore

    ReplyDelete
  44. Great article ...Thanks for your great information
    AWS Training In Hyderabad

    ReplyDelete
  45. I am impressed by the information that you have on this blog. It shows how well you understand this subject.
    Please check this Courses in Digital Marketing in Pune

    ReplyDelete
  46. Excellent Blog! I would like to thank for the efforts you have made in writing this ExcelR Digital Marketing Class In Pune post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!

    ReplyDelete
  47. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    data analytics courses in hyderabad
    data science courses
    business analytics course

    ReplyDelete
  48. medical care is what many people lack in the interior areas of the world. people face a lot of health issues everyday without solution. buy psychedelics online, Buy weed online, Buy fantanyl patches online

    ReplyDelete
  49. Thanks for sharing your innovative ideas to our vision. I have read your blog and I gathered some new information through your blog. Your blog is really very informative and unique. Keep posting like this. Awaiting for your further update.If you are looking for any Regression Analysis related information, please visit our website Regression Analysis Tutorial

    ReplyDelete
  50. I truly love this post, This is a very informative post..
    Thanks for sharing with us,
    We are again come on your website,
    Thanks and good day,
    If you need any logo then,
    Please visit our site,
    buylogo

    ReplyDelete
  51. I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
    pune digital marketing course

    ReplyDelete
  52. Through this post, I know that your good knowledge in playing with all the pieces was very helpful. I notify that this is the first place where I find issues I've been searching for. You have a clever yet attractive way of writing.
    Digital Marketing Course Pune

    ReplyDelete
  53. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!
    digital marketing course in pune

    ReplyDelete
  54. Nice Post! Thank you for sharing very good post, it was so Nice to read and useful to improve my knowledge as updated one, keep blogging.
    It’s great to come across a blog every once in a while that isn’t
    AWS training in chennai | AWS training in anna nagar | AWS training in omr | AWS training in porur | AWS training in tambaram | AWS training in velachery

    ReplyDelete
  55. 360DigiTMG GunturJuly 8, 2020 at 8:14 PM

    I will really appreciate the writer's choice for choosing this excellent article appropriate to my matter.

    data science course in guntur

    ReplyDelete
  56. Great Article
    Cloud Computing Projects


    Networking Projects

    Final Year Projects for CSE


    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

    ReplyDelete
  57. I normally wouldn't be so engaged by any articles pertaining to this subject, but yours grabbed my attention. It was like a great dessert crying out to me to eat it. This is good content.
    SAP training in Mumbai
    Data Science training in Mumbai
    Best data science training in Mumbai
    SAP training in Mumbai

    ReplyDelete
  58. Thanks for sharing such information. You can also visit our blog

    Mom Blog Names

    ReplyDelete
  59. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... there

    ReplyDelete
  60. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks images data entry

    ReplyDelete
  61. Thanks for sharing information. Your web-site is very cool. I am impressed by the details that you have on this blog. It reveals how nicely you perceive this subject
    java training in chennai

    java training in omr

    aws training in chennai

    aws training in omr

    python training in chennai

    python training in omr

    selenium training in chennai

    selenium training in omr

    ReplyDelete
  62. Very well written article. It was an awesome article to read. Complete rich content and fully informative about drive from AWS. oracle fusion training in bangalore

    ReplyDelete
  63. Great Article
    Cloud Computing Projects


    Networking Projects

    Final Year Projects for CSE


    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

    ReplyDelete
  64. Attend The Data Analyst Course From ExcelR. Practical Data Analyst Course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analyst Course.
    Data Analyst Course

    ReplyDelete
  65. The number of keywords in the python language are very limited. This makes it an easy language to learn for beginners. The core of the language is kept very small and functionalities are provided by other modules. unindent does not match any outer indentation level

    ReplyDelete
  66. Frequently, the business might not have the very best and the most experienced individuals to help it with the exact same. Since companies everywhere are doing this now, it isn't actually such a huge deal if you should think about doing it. Jake Hackett

    ReplyDelete
  67. I like your post. Everyone should do read this blog. Because this blog is important for all now I will share this post. Thank you so much for share with us.
    DevOps Training in Hyderabad
    DevOps Course in Hyderabad

    ReplyDelete
  68. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!
    Data science Training in hyderabad

    ReplyDelete