How to Backup your Data and Increase your Volume Size

Backup Feature Overview

Important: On Bare Metal instances, backups can be made by using the snapshot feature.

The Backup feature is used to back up your data. It creates an image of a snapshot that contains all your volumes. The backup feature is available on all series of servers but for BareMetal servers the server has to be powered off before the backup can be done. The same applies when performing a snapshot.

Creating backups of your server is free. However, keep in mind that as the backup feature creates snapshots of your volumes, you will be billed for these snapshots.

You can restore your server and all your data using that image created from the backup.

Requirements:

Creating a Backup from the Scaleway Console

1 . On your Server Dashboard, select the running server on which you want to perform a backup.

2 . Once the server details are displayed, scroll to the Backup section and click on Backup Server.

3 . Enter a name of the Backup and confirm:

backup.png

A pop-up informs you that your backup has been created and stored in your images (accessible via the side menu)

Restoring your Server from a Backup

1 . On top menu, click Images & Backups. To use your backup image, you must create a new server.

My_images.png

2 . Choose the backup that you want to restore and click on Create server from image:

My_images.png

3 . Enter the details of the new server.

Note: As your image already contains volumes, you cannot add additional volumes. Only the the image’s volume are taken into account.

4 . Click Create a new server

Increasing your Volume Size

Volumes are the storage space of your instances. All volumes on the Scaleway platform are backed by SSD for predictable performances. It is possible to expand the volume size of an instance and to upgrade it to a larger one.

1 . Click on the to power off your running instance.

2 . Once your instance is off, click on the and select Backup.

3 . Fill in the pop-up Create Image from Instance and click Create Image from this Instance.

4 . Click on the and select Detached IP.

You must now create a new Instance from the recently created image.

1 . Click Create a New Instance

2 . Choose an Image from My Images and select the image you just created.

3 . Choose the Region and select the Instance type

4 . Adjust the Volume Size

5 . Enter the name and the optional tags

6 . Click Advanced Options and select Flexible IP

7 . Click Create a new Instance

Creating a Backup via the Scaleway API

A backup is created using the command:

POST https://api.scaleway.com/instance/v1/zones/<region>/<uid>/action
{"action":"backup"}

Replace <region> with the geographical region of the instance. This value can either be fr-par-1 for instances located in Paris, or nl-ams-1 for instances located in Amsterdam. Replace <uid> with the unique identifier of the instance.

By default, the name of the image is built according to the name of the server and the date:

image_<servername>_YYYY-MM-DD_hh-mm.

Alternatively you can specify a name for the image in the request:

POST https://api.scaleway.com/instance/v1/zones/<region>/servers/<id>/action
{ "action":"backup", "name":"myimagename" }

A backup request will create an Image object (Visible in the href_result: /images/<image_uuid>)

GET https://api.scaleway.com/instance/v1/zones/<region>/images/<image_uid>

An Image contains one snapshot for each volume of the instance. These snapshots are visible within the Image response, as root_volume and extra_volumes fields

Deleting a Backup via the Scaleway API

To delete the image that contains a backup run the following call:

DELETE https://api.scaleway.com/instance/v1/zones/<region>/images/<image_uid>

It is also recommended to remove every snapshot related to the image by running the following API call for each snaphot that is no longer needed:

DELETE https://api.scaleway.com/instance/v1/zones/<region>/snapshots/<snapshot_uid>

Discover a New Cloud Experience

Deploy SSD Cloud Servers in seconds.