{"id":50781,"date":"2023-07-30T22:48:14","date_gmt":"2023-07-30T18:48:14","guid":{"rendered":"https:\/\/www.msp360.com\/resources\/?p=50781"},"modified":"2024-01-23T19:54:49","modified_gmt":"2024-01-23T15:54:49","slug":"how-to-back-up-amazon-lightsail-instances","status":"publish","type":"post","link":"https:\/\/www.msp360.com\/resources\/blog\/how-to-back-up-amazon-lightsail-instances\/","title":{"rendered":"How to Back Up Amazon Lightsail Instances"},"content":{"rendered":"<p>Amazon Lightsail is a cost-effective and lightweight virtual server that can be used for various purposes: deploying applications, creating testing environments, launching websites and blogs, and more. Compared to the Amazon EC2 virtual cloud servers service, it is easier to start with.<\/p>\n<p><!--more--><\/p>\n<p>And while it\u2019s easy to set up Amazon Lightsail server and run applications inside it, this server still needs to be regularly backed up.<\/p>\n<p>In this article, we\u2019ll overview two methods of backing up your data in Amazon Lightsail: with the native AWS snapshot backup and with <a href=\"https:\/\/www.msp360.com\/managed-backup\/\">MSP360 Managed Backup<\/a>.<\/p>\n<h2>Backing Up Your Data with Lightsail Tools<\/h2>\n<p>To enable the backup feature, switch on the <b>Enable Automatic Snapshots<\/b> option. You can do this while creating the Lightsail instance or, later, in the <b>Snapshots<\/b> tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50796\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image13.png\" alt=\"Enabling Automatic Snapshots for an Amazon Lightsail Instance\" width=\"756\" height=\"347\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image13.png 756w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image13-300x138.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image13-624x286.png 624w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/p>\n<p>These snapshots will be made daily at the time you specify and will be stored by Amazon Web Services. The storage billing for them is simple compared to other AWS services: you pay for each GB\/month. If you have snapshotted the same Lightsail instance several times, after the first copy, Amazon charges you only for changed blocks.<\/p>\n<p>Bear in mind that creating a backup with Lightsail tools might take several hours, even if the amount of data is not large.<\/p>\n<p id=\"last\">You\u2019ll be able to find the copies at the homepage of your Amazon Lightsail account, in the <b>Snapshots<\/b> tab. Here, you can also create a snapshot manually.<\/p>\n<div id=\"slidebox\"><a class=\"close\">\u00a0<\/a><!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper hs-cta-deferred\" id=\"hs-cta-wrapper-aa07fdb8-7776-46a5-9fa0-ec6e93f0f0a6\" data-portal=\"5442029\" data-id=\"aa07fdb8-7776-46a5-9fa0-ec6e93f0f0a6\"><span class=\"hs-cta-node hs-cta-aa07fdb8-7776-46a5-9fa0-ec6e93f0f0a6\" id=\"hs-cta-aa07fdb8-7776-46a5-9fa0-ec6e93f0f0a6\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/5442029\/aa07fdb8-7776-46a5-9fa0-ec6e93f0f0a6\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-aa07fdb8-7776-46a5-9fa0-ec6e93f0f0a6\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/5442029\/aa07fdb8-7776-46a5-9fa0-ec6e93f0f0a6.png\" alt=\"CTA\"><\/a><\/span><\/span><!-- end HubSpot Call-to-Action Code --><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50798\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image15.png\" alt=\"The Snapshots Tab\" width=\"981\" height=\"493\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image15.png 981w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image15-300x151.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image15-768x386.png 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image15-624x314.png 624w\" sizes=\"auto, (max-width: 981px) 100vw, 981px\" \/><\/p>\n<p>Please note: automatic snapshots allow you to back up your instance only once a day. Also, there\u2019s no option to choose a storage location or create a file-level backup.<\/p>\n<p>Now you know how to back up your Lightsail server with the built-in backup tool. Below, we\u2019ll describe how to perform it with MSP360 Managed Backup and why you should choose our solution.<\/p>\n<h2>Backing Up Your Data with MSP360 Managed Backup<\/h2>\n<p>With MSP360 Managed Backup, it is easy to customize your backups according to your needs:<\/p>\n<ul>\n<li>choose your own destination;<\/li>\n<li>set up schedule more granularly;<\/li>\n<li>switch on file compression;<\/li>\n<li>protect the data with a password;<\/li>\n<li>configure the retention policy;<\/li>\n<li>and more.<\/li>\n<\/ul>\n<p>You can test backing up your Lightsail instance in a free version of CloudBerry Backup or evaluate a trial of the fully fledged MSP360 Managed Backup solution, which can be upgraded to a commercial version to use at scale. Below, you\u2019ll find a guide on how to back up the Amazon Lightsail server using the MSP360 Managed Backup console.<\/p>\n<h3>How to Back Up Your Lightsail Instance with MSP360 Managed Backup<\/h3>\n<p>To be able to back up your data, install MSP360 Managed Backup on your Lightsail instance, either while creating the instance or later.<\/p>\n<p>Copy the appropriate script in the <b>Downloads<\/b> tab of your console and paste it to the <b>Launch script<\/b> field during configuration of the instance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50789\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image6.png\" alt=\"Copying the Installation Script in MSP360 Managed Backup\" width=\"468\" height=\"487\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image6.png 468w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image6-288x300.png 288w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/p>\n<p>Our instance runs on Linux, so we\u2019ve copied a bash script and added #\/bin\/bash at the very beginning to run the script.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50788\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image5.png\" alt=\"How the Installation Script Looks\" width=\"746\" height=\"285\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image5.png 746w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image5-300x115.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image5-624x238.png 624w\" sizes=\"auto, (max-width: 746px) 100vw, 746px\" \/><\/p>\n<p>You can also install it afterward on the running server.<\/p>\n<p>Once booted, the Lightsail virtual machine will appear in your endpoints list, which can be found in the <b>Remote Management<\/b> section of the <b>RMM<\/b> tab. The machine will be named after your IP address.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50785\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image2.png\" alt=\"MSP360 Managed Backup: Finding the Lightsail Instance\" width=\"1035\" height=\"312\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image2.png 1035w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image2-300x90.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image2-1024x309.png 1024w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image2-768x232.png 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image2-624x188.png 624w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image2-825x250.png 825w\" sizes=\"auto, (max-width: 1035px) 100vw, 1035px\" \/><\/p>\n<p>To create a backup plan, click the gear icon, then <b>Show Plans<\/b>, and <b>Create Plan<\/b>. For Linux, it will be a file-level backup.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50787\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image4.png\" alt=\"MSP360 Managed Backup: Creating a Backup Plan\" width=\"443\" height=\"312\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image4.png 443w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image4-300x211.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image4-100x71.png 100w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/p>\n<p>Name your plan and specify whether it should execute block-level backups or not.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50794\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image11.png\" alt=\"MSP360 Managed Backup: Naming the Plan\" width=\"743\" height=\"278\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image11.png 743w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image11-300x112.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image11-624x233.png 624w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/p>\n<p>Choose what to back up: the whole instance or just important files. In the latter case, choose the files or folders you need. Find them in the list or type in the <b>Include Paths<\/b> field.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50791\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image8.png\" alt=\"MSP360 Managed Backup: Choosing What to Store\" width=\"740\" height=\"841\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image8.png 740w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image8-264x300.png 264w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image8-624x709.png 624w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>Specify the backup destination.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50792\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image9.png\" alt=\"MSP360 Managed Backup: Where to Back Up\" width=\"711\" height=\"320\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image9.png 711w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image9-300x135.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image9-624x281.png 624w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/p>\n<p>Customize the advanced filter for backing up your files if necessary.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50784\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image1.png\" alt=\"MSP360 Managed Backup: Advanced Filter\" width=\"740\" height=\"517\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image1.png 740w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image1-300x210.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image1-624x436.png 624w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image1-100x71.png 100w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>Compress the backup to make it take up less space and protect it with a password if needed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50786\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image3.png\" alt=\"MSP360 Managed Backup: Compression and Encryption\" width=\"689\" height=\"598\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image3.png 689w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image3-300x260.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image3-624x542.png 624w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/p>\n<p>Define the retention policy: how many versions to store and for how long. It is recommended to leave the <b>Always keep the last version option enabled<\/b> \u2013 to avoid losing vital data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50797\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image14.png\" alt=\"MSP360 Managed Backup: Retention Policy\" width=\"717\" height=\"437\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image14.png 717w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image14-300x183.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image14-624x380.png 624w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<p>Set up a convenient schedule for your backup.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50799\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image16.png\" alt=\"MSP360 Managed Backup: Schedule Options\" width=\"713\" height=\"488\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image16.png 713w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image16-300x205.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image16-624x427.png 624w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/p>\n<p>Add pre- or post-actions. These actions are scripts that perform some actions before the plan starts or after it finishes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50793\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image10.png\" alt=\"MSP360 Managed Backup: Additional Actions\" width=\"732\" height=\"509\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image10.png 732w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image10-300x209.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image10-624x434.png 624w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image10-100x71.png 100w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p>Switch on notifications if you want to get immediate information about how the plan\u2019s going.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50795\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image12.png\" alt=\"MSP360 Managed Backup: Notifications\" width=\"442\" height=\"155\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image12.png 442w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image12-300x105.png 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/p>\n<p>Click <strong>Save<\/strong> and you\u2019ll see your new backup plan in the list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50790\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image7.png\" alt=\"MSP360 Managed Backup: New Plan Created\" width=\"444\" height=\"357\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image7.png 444w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/05\/image7-300x241.png 300w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><\/p>\n<p>That\u2019s it! The plan will be run according to the schedule you\u2019ve defined.<\/p>\n<h2>Conclusion<\/h2>\n<p>The native Amazon Lightsail backup has its advantages, such as simplicity, but it lacks flexibility. You can\u2019t change the backup destination, the schedule configuration options are limited, and there\u2019s no opportunity to compress or encrypt files. If having these options is important for you, it is worth choosing a third-party backup solution \u2013 such as MSP360 Managed Backup. If you have any questions, contact us.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Amazon Lightsail is a cost-effective and lightweight virtual server that can be used for various purposes: deploying applications, creating testing environments, launching websites and blogs, and more. Compared to the Amazon EC2 virtual cloud servers service, it is easier to start with.<\/p>\n","protected":false},"author":89,"featured_media":50782,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[878,931],"tags":[976],"class_list":["post-50781","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-msp-university","category-msp360-product-guides","tag-how-to-back-up-amazon-lightsail-instances"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/50781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/comments?post=50781"}],"version-history":[{"count":6,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/50781\/revisions"}],"predecessor-version":[{"id":56050,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/50781\/revisions\/56050"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media\/50782"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=50781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/categories?post=50781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/tags?post=50781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}