How to Backup your Data

Backup Feature Overview

Important: On Bare Meal 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

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.