|
| 1 | +--- |
| 2 | +title: 'Using automatic backups on a VPS' |
| 3 | +slug: using-automated-backups-on-a-vps |
| 4 | +excerpt: 'Find out how to enable and use the Automated Backup option in the OVHcloud Control Panel' |
| 5 | +section: 'Backup options' |
| 6 | +order: 2 |
| 7 | +--- |
| 8 | + |
| 9 | +**Last updated 22th April 2020** |
| 10 | + |
| 11 | + |
| 12 | +## Objective |
| 13 | + |
| 14 | +This option offers a convenient way to frequently have complete VPS backups available from your OVHcloud Control Panel without having to connect to the server to create and restore them manually. Another advantage is that you can also choose to mount a backup and then access it via SSH. |
| 15 | + |
| 16 | +**This guide explains the usage of auto-backups for your OVHcloud VPS.** |
| 17 | + |
| 18 | +> [!primary] |
| 19 | +> |
| 20 | +Before applying backup options, we recommend to consult the [product pages and FAQ](https://www.ovhcloud.com/en-gb/vps/options/) for pricing comparisons and further details. |
| 21 | +> |
| 22 | +
|
| 23 | +## Requirements |
| 24 | + |
| 25 | +- access to the [OVHcloud Control Panel](https://www.ovh.com/auth/?action=gotomanager) |
| 26 | +- an OVHcloud [VPS service](https://www.ovhcloud.com/en-gb/vps/) already set up |
| 27 | +- administrative access (root) via SSH to your VPS (optional) |
| 28 | + |
| 29 | +## Instructions |
| 30 | + |
| 31 | +Log in to your [OVHcloud Control Panel](https://www.ovh.com/auth/?action=gotomanager), navigate to the "Server" section, and select your server from the left-hand sidebar under `VPS`{.action}. |
| 32 | + |
| 33 | +### Step 1: Subscribing to the Automated backups option |
| 34 | + |
| 35 | +After selecting your VPS, click on the `Automated backup`{.action} tab in the horizontal menu. |
| 36 | + |
| 37 | +In the next step, please take note of the pricing information, then click on `Order`{.action}. You will be guided through the order process and receive a confirmation email. Backups will now be created daily until the option is cancelled again. |
| 38 | + |
| 39 | + |
| 40 | +### Step 2: Restoring a backup from the OVHcloud Control Panel |
| 41 | + |
| 42 | +After selecting your VPS, click on the `Automated backup`{.action} tab in the horizontal menu. There will be a maximum of 15 daily backups available. Click on `...`{.action} next to the backup you would like to restore and select `Restoration`{.action}. |
| 43 | + |
| 44 | +{.thumbnail} |
| 45 | + |
| 46 | +If you recently changed your root password, make sure to tick the option "Modify the root password on restoration" in the popup window to preserve your current root password and click on `Confirm`{.action}. You will receive an email as soon as the task is complete. The restoration might take a while, depending on the disk space used. |
| 47 | + |
| 48 | +> [!alert] |
| 49 | +> |
| 50 | +Please note that the automated backups will not include your additional disks. |
| 51 | +> |
| 52 | +
|
| 53 | +### How to mount and access a backup |
| 54 | + |
| 55 | +It is not necessary to completely overwrite your existing service with a restoration. The "Mounting" option allows you to access the backup data to retrieve your files. |
| 56 | + |
| 57 | +> [!warning] |
| 58 | +>OVHcloud is providing you with services for which you are responsible, with regard to their configuration and management. You are therefore responsible for ensuring they function correctly. |
| 59 | +> |
| 60 | +>This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend contacting a specialised provider and/or the software publisher for the service if you encounter any difficulties. We will not be able to assist you ourselves. You can find more information in the “Go further” section of this guide. |
| 61 | +> |
| 62 | +
|
| 63 | +#### Step 1: Control Panel |
| 64 | + |
| 65 | +Click on `...`{.action} next to the backup you need to access and select `Mounting`{.action}. |
| 66 | + |
| 67 | +{.thumbnail} |
| 68 | + |
| 69 | +After the process is completed, you will receive an email. You can now connect to your VPS and add the partition where your backup is located. |
| 70 | + |
| 71 | +#### Step 2: Secure Shell |
| 72 | + |
| 73 | +First, connect to your VPS via SSH. |
| 74 | + |
| 75 | +You can use the following command to verify the name of the newly attached device: |
| 76 | + |
| 77 | +``` |
| 78 | +# lsblk |
| 79 | +``` |
| 80 | + |
| 81 | +Here is a sample output of this command: |
| 82 | + |
| 83 | +``` |
| 84 | +NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT |
| 85 | +sda 8:0 0 25G 0 disk |
| 86 | +├─sda1 8:1 0 24.9G 0 part / |
| 87 | +├─sda14 8:14 0 4M 0 part |
| 88 | +└─sda15 8:15 0 106M 0 part |
| 89 | +sdb 8:16 0 25G 0 disk |
| 90 | +├─sdb1 8:17 0 24.9G 0 part |
| 91 | +├─sdb14 8:30 0 4M 0 part |
| 92 | +└─sdb15 8:31 0 106M 0 part /boot/efi |
| 93 | +sdc 8:32 0 50G 0 disk |
| 94 | +``` |
| 95 | +In this example, the partition containing your backup filesystem is named "sdb1". |
| 96 | +Next, create a directory for this partition and define it as the mountpoint: |
| 97 | + |
| 98 | +``` |
| 99 | +# mkdir -p /mnt/restore |
| 100 | +# mount /dev/sdb1 /mnt/restore |
| 101 | +``` |
| 102 | + |
| 103 | +You can now switch to this folder and access your backup data. |
| 104 | + |
| 105 | + |
| 106 | +## Go further |
| 107 | + |
| 108 | +[Using snapshots on a VPS](https://docs.ovh.com/gb/en/vps/using-snapshots-on-a-vps) |
| 109 | + |
| 110 | + |
| 111 | +Join our community of users on <https://community.ovh.com/en/>. |
0 commit comments