{"id":2428,"date":"2015-09-16T10:53:35","date_gmt":"2015-09-16T07:53:35","guid":{"rendered":"https:\/\/upcloud.com\/global\/us\/resources\/tutorials\/restoring-backups\/"},"modified":"2015-09-16T10:53:35","modified_gmt":"2015-09-16T07:53:35","slug":"restoring-backups","status":"publish","type":"tutorial","link":"https:\/\/upcloud.com\/global\/resources\/tutorials\/restoring-backups\/","title":{"rendered":"Restoring backups"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">UpCloud provides two ways to restore data from your storage backups. You can either revert the entire storage device to a previous backup snapshot, or you can clone the backup to new storage and restore individual files by mounting the cloned device onto a server.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/signup.upcloud.com\/\">Test hosting on UpCloud!<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Restoring backup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This method will overwrite the existing storage device entirely with the selected backup. All data on the device will be returned to the point at which the backup was taken. This is very useful for reverting major changes to your current system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the&nbsp;cloud&nbsp;server must be shut down during the&nbsp;backup restore procedure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start by going to your server settings at your&nbsp;<a rel=\"noopener\" href=\"https:\/\/hub.upcloud.com\/\" target=\"_blank\">UpCloud Control Panel<\/a> and open the <em>Backups<\/em> tab. On the History list, you\u2019ll see all of the backups of your server. For each backup, you can find the date and time of when the backup was taken and controls to restore or delete the backup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Select the backup you wish to restore, click the <em>Restore<\/em> button, and then confirm you wish to continue by clicking the <em>Ok<\/em> button when asked.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/restore-backup-4.png\" alt=\"Restore backup\" class=\"wp-image-12531\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The backup restoration will only take a moment depending on your storage size and type, MaxIOPS is considerably faster at all storage procedures than an HDD of the same size. You can follow the progress on the <em>Backups<\/em> tab.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/restoring-backup.png\" alt=\"Restoring backup\" class=\"wp-image-12532\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once the restore has finished, you can start the server as normal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that while the restoration to a runnable status is quick, other storage operations will continue in the background which will limit your ability to immediately make new backups. You can see the status of the background process on the <a rel=\"noopener\" href=\"https:\/\/hub.upcloud.com\/storage\" target=\"_blank\">Storages page in your control panel.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cloning backup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It is also possible to clone a backup onto a new standard storage device. You can then attach the clone to the original server, or to any other, as secondary storage. Attaching a backup clone to your existing server allows you to access individual files from the device without needing to revert the entire system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To start,&nbsp;go to the <em>Backups<\/em> sections under the <em>Storage<\/em> page in your <a rel=\"noopener\" href=\"https:\/\/hub.upcloud.com\/storage\/backups\" target=\"_blank\">UpCloud Control Panel<\/a>. Find the backup you wish to access on the list and click the <em>Clone<\/em> button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Give the backup clone a name you\u2019ll recognise later and click <em>Accept<\/em> to proceed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/clone-backup-2.png\" alt=\"Clone backup\" class=\"wp-image-5859\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The cloning will take a moment depending on the size of your backup and the storage device type you selected as the target. You can check the status in your <a href=\"https:\/\/hub.upcloud.com\/storage\" target=\"_blank\" rel=\"noopener\"><em>Storage<\/em> devices section<\/a>. While cloning, the cloned storage device will show that the operation is in progress<em>.<\/em> Once the operation has finished you\u2019ll see the same controls as for the other storage device listed on the same page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Attaching storage to an existing server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the cloning process is complete shut down the server, then go back to your server settings and open the <em>Storage<\/em> tab. Under the attached <em>Storage<\/em> resources you\u2019ll find the option to manage the storage devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the cloud server must be shut down before attaching new storage devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click on the <em>Add new device<\/em> button which will open a new setup dialogue for creating and attaching storage devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Select <em>Attach existing device<\/em>, then find the disk clone you made earlier and select it from the <em>Device list<\/em> and finally click the <em>Add a storage device<\/em> button to confirm the action.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/attach-backup-clone-1.png\" alt=\"Attach backup clone\" class=\"wp-image-5860\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Afterwards, you\u2019ll see the cloned device shows up as an attached resource, you can now start up the server again.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/attached-backup-1.png\" alt=\"Attached backup\" class=\"wp-image-5861\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Restoring files on Linux servers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Linux systems will require you to mount the new storage to access the files from the backup clone. Do this by first creating a mounting point to your file system with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mkdir \/media\/backup<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the device name and partitions you just attached to the server with the command below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">lsblk -io KNAME,TYPE,SIZE<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output will show a list of storage devices usually named <tt>vda<\/tt>, <tt>vdb<\/tt> or <tt>vdc<\/tt> and their partitions such as <tt>vda1<\/tt> and <tt>vdb1<\/tt>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are not sure which of the partitions is on&nbsp;the cloned backup, you can check your current system partitions with this command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">df -h<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The command&nbsp;will list the partitions and their sizes currently configured on your server. Select a partition from the <tt>lsblk<\/tt>&nbsp;printout that is not yet in use, for example, if your system partition is called <tt>vda1<\/tt>, select&nbsp;<tt>vdb1<\/tt> for mounting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then simply mount the new storage device <span style=\"color: #ff0000\">partition<\/span> to the directory you just created with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mount \/dev\/<span style=\"color: #ff0000\">partition<\/span> \/media\/backup<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After mounting the device you can restore any and all files you wish by simply copying them over.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Restoring files on Windows servers<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Windows servers might require you to take&nbsp;a couple of steps before you are&nbsp;able to access the backup files. Start by connecting to your server, for example, through Remote Desktop. Once logged on&nbsp;type in&nbsp;<em>diskmgmt.msc<\/em> to the Windows search and open it by pressing Enter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In <em>Disk Management<\/em>, you\u2019ll see the previously existing disks and the newly added backup clone that will likely show as offline. Right-click the clone storage and select <em>Online<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/Disk-manager-2.png\" alt=\"Disk manager\" class=\"wp-image-581\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on your Windows server version, you might get a pop-up asking to scan the new drive, you can skip this by clicking <em>Continue without scanning<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the disk online, you can now access it normally through the file browser to copy over any files you wish to restore.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Removing cloned disk<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have restored the files you needed, it is as simple as shutting down the server again, detaching the backup clone and deleting it. Go back to your server settings again and open the Storage tab.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Under the attached <em>Storage<\/em> resources list you\u2019ll find the option to detach or delete.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not wish to delete the backup clone just yet, you can simply click the eject icon and leave the disk for later use. Otherwise, you can just click the bin icon and the disk will get detached and deleted.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/upcloud.com\/media\/delete-clone-1.png\" alt=\"Delete clone\" class=\"wp-image-5862\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Don\u2019t forget to make regular backups of your server again after restoring files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Notes on the backup technology<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The steps required to restore and access files in backups might seem complicated, but we aim to make the process as simple as possible. Our backup technology focuses on data integrity while being fast and easy to operate. However, it comes with a couple of main differences from some other backup models.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">It is not possible to restore individual files automatically<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We handle storage devices and their backups as full media images. Access to individual files would require knowledge of used partitioning, file systems and possible storage encryption, which would reduce your data privacy. Due to this, it is not possible for us to neither restore backups for you nor provide a graphical user interface to access or browse the contents of the backups.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Backups cannot be attached directly to a server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Backups are stored in separate storage systems which maximize storage security over IO and access properties. Due to these limitations, it is not possible to directly attach backup snapshots. Instead, new standard storage can be created by cloning the backup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To learn more about storage data security &amp; privacy, <a href=\"https:\/\/upcloud.com\/global\/docs\/products\/block-storage\/features\/data-privacy\/\">read here<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","community-category":[262,247],"class_list":["post-2428","tutorial","type-tutorial","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial\/2428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/types\/tutorial"}],"author":[{"embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/comments?post=2428"}],"version-history":[{"count":0,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/tutorial\/2428\/revisions"}],"wp:attachment":[{"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/media?parent=2428"}],"wp:term":[{"taxonomy":"community-category","embeddable":true,"href":"https:\/\/upcloud.com\/global\/wp-json\/wp\/v2\/community-category?post=2428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}