{"id":219448,"date":"2021-04-05T16:00:26","date_gmt":"2021-04-05T13:00:26","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it\/"},"modified":"2021-04-05T16:00:26","modified_gmt":"2021-04-05T13:00:26","slug":"how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it\/","title":{"rendered":"#How to Use DigitalOcean Backups and Snapshots \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2a36fc5a758\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2a36fc5a758\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it\/#Whats_The_Difference\" >What\u2019s The Difference?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it\/#Setting_Up_Droplet_Backups\" >Setting Up Droplet Backups<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it\/#Restoring_a_Backup\" >Restoring a Backup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it\/#Snapshots\" >Snapshots<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it\/#Backing_Up_Other_DigitalOcean_Resources\" >Backing Up Other DigitalOcean Resources<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-digitalocean-backups-and-snapshots-cloudsavvy-it\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Use DigitalOcean Backups and Snapshots \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8934\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/01\/83680385.jpeg?width=1200&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"DigitalOcean logo\" width=\"1600\" height=\"900\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>How\u2019s your backup strategy? You can protect your cloud assets from disaster by making regular backups. Here\u2019s how to use DigitalOcean\u2019s two imaging systems, Backups and Snapshots.<\/p>\n<h2 id=\"whats-the-difference\"><span class=\"ez-toc-section\" id=\"Whats_The_Difference\"><\/span>What\u2019s The Difference?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Backups and Snapshots both produce a complete disk image of your droplet at a particular point in time. You can restore the droplet\u2019s state using the image. DigitalOcean also lets you spin up a new droplet with the backup or snapshot image as its base.<\/p>\n<p>The difference lies in how the image is created. \u201cBackups\u201d is a fully-managed automated system. Backups are enabled on a per-droplet basis. When active, DigitalOcean will create a disk image each week. The backup will be retained for four weeks, so you\u2019ll have four different recovery options.<\/p>\n<p>Backups add another 20% to the monthly cost of your droplet. They\u2019re stored in the same datacentre as your droplet, so it\u2019s plausible \u2013 although perhaps improbable \u2013 that a datacentre-wide outage or natural disaster could prevent you using your backups.<\/p>\n<p>Snapshots are on-demand images. You create them manually, using the Control Panel or the API. Once created, snapshots persist in your account indefinitely, until you explicitly delete them.<\/p>\n<p>Snapshots are billed based on their size. You\u2019ll pay $0.05\/GiB per month. Snapshots are created in the same datacentre as your droplet. You can make snapshots available in other datacentre regions on a per-snapshot basis.<\/p>\n<p>Unlike backups, snapshots aren\u2019t limited to droplets. You can also create snapshots of your Block Storage Volumes. You should consider periodically snapshotting your volumes as they won\u2019t be included in droplet snapshots or backups.<\/p>\n<h2 id=\"setting-up-droplet-backups\"><span class=\"ez-toc-section\" id=\"Setting_Up_Droplet_Backups\"><\/span>Setting Up Droplet Backups<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let\u2019s look at setting up automated droplet backups first.<\/p>\n<p>Login to your Digital Control Panel. Click any droplet on the homepage. Then, on the droplet details page, click the \u201cBackups\u201d link in the sidebar. You\u2019ll see an \u201cEnable Backups\u201d button. Click the button to activate backups.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10376\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/51d5b904-1.jpg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1227\" height=\"700\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>DigitalOcean automatically allocates you a weekly backup window which you can\u2019t change or customise. The page will show you what your backup schedule is; until your schedule is run, no backups will be available for your droplet.<\/p>\n<p>You can automate backup setup by using Doctl, DigitalOcean\u2019s command-line client. Once you\u2019re authenticated, run <code>doctl compute droplet list<\/code> to get the list of droplets in your account. Note down the ID of the droplet you want to configure.<\/p>\n<p>Next, setup backups for the droplet:<\/p>\n<pre>doctl compute droplet-action enable-backups &lt;droplet-id&gt;<\/pre>\n<p>Once backups have been created, you can list them using another command:<\/p>\n<pre>doctl compute droplet backups &lt;droplet-id&gt;<\/pre>\n<h2 id=\"restoring-a-backup\"><span class=\"ez-toc-section\" id=\"Restoring_a_Backup\"><\/span>Restoring a Backup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can view your four retained backups at the bottom of a droplet\u2019s Backups page. Click the \u201cMore\u201d button to see the available options.<\/p>\n<p>You can restore your droplet by clicking \u201cRestore Droplet\u201d and acknowledging the confirmation prompt. This will overwrite your current droplet with the contents of the backup.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10375\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/fa3b88d8.jpg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1047\" height=\"538\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The \u201cCreate Droplet\u201d option gives you another recovery strategy. This will let you configure a new droplet using the backup as its initial image. You\u2019ll be taken to the droplet creation page to choose the hardware plan for your new droplet.<\/p>\n<p>Finally, you can convert backups into snapshots. This lets you keep a backup indefinitely, beyond the end of the default monthly retention period. You can also use snapshots to transfer backup data into a new datacentre region.<\/p>\n<h2 id=\"snapshots\"><span class=\"ez-toc-section\" id=\"Snapshots\"><\/span>Snapshots<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To manage snapshots in the web interface, select a droplet and click the \u201cSnapshots\u201d link in its sidebar.<\/p>\n<p>You create new snapshots using the controls at the top of the page. Give the snapshot a name and click \u201cTake live snapshot\u201d. This will capture the droplet without powering it off. If you need to guarantee data consistency, you should shutdown the droplet before taking the snapshot.<\/p>\n<p>Snapshot creation takes up to 1 minute per GB of data used by your droplet. The snapshot will show up under \u201cDroplet snapshots\u201d when the process completes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10374\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/51d5b904.jpg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1251\" height=\"516\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To snapshot a volume, click the Volumes link in the left sidebar. Click the \u201cMore\u201d button next to any of your volumes. Press \u201cTake snapshot\u201d and give your snapshot a name. Volume snapshots require a similar creation time to droplet snapshots.<\/p>\n<p>You can access all your droplet and volume snapshots from the \u201cImages\u201d link in the sidebar. Use the \u201cDroplets\u201d and \u201cVolumes\u201d tabs to see your snapshots.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10373\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/03\/d178d981.jpg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"671\" height=\"346\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The \u201cMore\u201d menu lets you create a droplet from the snapshot, restore the droplet (or volume) using the snapshot, or transfer the snapshot into another region. The latter option lets you subsequently create a new droplet in a different datacentre that uses the snapshot as its base image.<\/p>\n<p>You can orchestrate snapshot actions using Doctl. Here are some helpful commands when working with snapshots:<\/p>\n<pre># Get all snapshots stored for a droplet&#13;\ndoctl compute droplet snapshots &lt;droplet-id&gt;&#13;\n&#13;\n# Create a snapshot of a droplet&#13;\ndoctl compute droplet-action snapshot &lt;droplet-id&gt;&#13;\n&#13;\n# Create a snapshot of a volume&#13;\ndoctl compute volume snapshot &lt;volume-id&gt;&#13;\n&#13;\n# List all snapshots in your account&#13;\ndoctl compute snapshot list&#13;\n&#13;\n# Delete a snapshot&#13;\ndoctl compute snapshot delete &lt;snapshot-id&gt;<\/pre>\n<p>Use the <code>compute droplet list<\/code>, <code>compute volume list<\/code> and <code>compute snapshot list<\/code> commands to get the resource IDs to supply to the snapshot commands shown above.<\/p>\n<h2 id=\"backing-up-other-digitalocean-resources\"><span class=\"ez-toc-section\" id=\"Backing_Up_Other_DigitalOcean_Resources\"><\/span>Backing Up Other DigitalOcean Resources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Backups are only for droplets; Snapshots are for droplets and volumes. You can\u2019t use them with any other DigitalOcean resource type.<\/p>\n<p>You should consider how you\u2019ll backup your other DigitalOcean data. The platform\u2019s managed services \u2013 such as Managed Databases and Spaces object storage \u2013 do have integrated backups within DigitalOcean\u2019s infrastructure. You may want to manually backup to another cloud provider in the interest of ensuring redundancy.<\/p>\n<h2 id=\"summary\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>DigitalOcean Backups are a set-it-and-forget-it <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>roach to backups which should \u201cjust work\u201d for most light workloads. However, the weekly schedule and same-datacentre storage won\u2019t work for anything business-critical. If that\u2019s the case, you should consider periodic snapshots or a custom backup system.<\/p>\n<p>Snapshots are ideal when you\u2019re about to make a major droplet configuration change. You can snapshot your machine to give you a recovery option in the event of failure. The portability of snapshots lets you move data between DigitalOcean regions without having to manually transfer anything.\n<\/p><\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/10367\/how-to-use-digitalocean-backups-and-snapshots\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Use DigitalOcean Backups and Snapshots \u2013 CloudSavvy IT&#8221; How\u2019s your backup strategy? You can protect your cloud assets from disaster by making regular backups. Here\u2019s how to use DigitalOcean\u2019s two imaging systems, Backups and Snapshots. What\u2019s The Difference? Backups and Snapshots both produce a complete disk image of your droplet at a particular&#8230;<\/p>\n","protected":false},"author":1,"featured_media":219449,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/01\/83680385.jpeg","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-219448","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/219448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=219448"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/219448\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/219449"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=219448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=219448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=219448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}