You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/instances/api-cli/managing-instance-snapshot-via-cli.mdx
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ content:
7
7
paragraph: This page explains how to manage Scaleway Instance snapshots with the CLI (v2)
8
8
tags: manage instance snapshot cli cli-v2
9
9
dates:
10
-
validation: 2025-04-22
10
+
validation: 2025-05-28
11
11
posted: 2022-09-24
12
12
categories:
13
13
- compute
@@ -38,15 +38,11 @@ The following arguments and flags are available to customize your command:
38
38
39
39
```sh
40
40
ARGS:
41
+
[volume-id] UUID of the volume to snapshot
41
42
[name=<generated>] Name of the snapshot
42
-
[volume-id] UUID of the volume
43
-
[tags.{index}] The tags of the snapshot
44
43
[project-id] Project ID to use. If none is passed the default project ID will be used
45
-
[bucket] Bucket name for snapshot imports
46
-
[key] Object key for snapshot imports
47
-
[size] Imported snapshot size, must be a multiple of 512
48
-
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
49
-
[zone=fr-par-1] Zone to target. If none is passed will use the default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | pl-waw-1)
44
+
[tags.{index}] List of tags assigned to the snapshot
45
+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
50
46
51
47
FLAGS:
52
48
-h, --help helpfor create
@@ -82,11 +78,21 @@ Run the following command to create a named snapshot from the given volume ID. R
## Exporting a QCOW file to an Object Storage bucket from an Instance snapshot
82
+
83
+
Run the following command to export an Instance snapshot as a QCOW2 file to an existing Object Storage bucket in the same geographical region as the snapshot.
## Importing a QCOW file from an Object Storage bucket as Instance snapshot
86
90
87
-
Run the following command to import a QCOW file as an Instance snapshot. Replace the bucket name `my-bucket` with the name of your Object Storage bucket and the file name `qcow2-file-name.qcow2` with the name of your QCOW file.
91
+
Run the following command to import a QCOW file as an Instance snapshot. Replace the snapshot name `my-imported-snapshot` with the name of the snapshot to create, the bucket name `my-bucket` with the name of your Object Storage bucket and the file name `my-qcow2-file-name.qcow2` with the name of your QCOW file.
92
+
Specify the size of the imoported snapshot with the `size=10GB` flag.
Once the snapshot has been imported, it becomes available in the list of snapshots in the `fr-par-2` AZ:
135
+
Once the snapshot has been imported, it becomes available in the list of snapshots in the `fr-par-1` AZ.
134
136
135
137
<Messagetype="tip">
136
-
The Instance snapshot will be created as soon as the API call returns, but the import action will take several minutes to complete. In the meantime, the snapshot will be in the `importing` state, before becoming `available` once the import is successful.
137
-
138
-
```sh
139
-
curl -X GET https://api.scaleway.com/instance/v1/zones/fr-par-2/snapshots/<snapshot_uuid> \
The Instance snapshot will be created as soon as the API call returns, but the import action will take several minutes to complete. In the meantime, the snapshot will be in the `creating` state, before becoming `available` once the import is successful.
Copy file name to clipboardExpand all lines: pages/instances/how-to/create-image-from-snapshot.mdx
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ categories:
22
22
23
23
## Creating an image from a snapshot via the Scaleway console
24
24
25
-
1. Click **CPU Instances** in the **Compute** section of the side menu. The [Instances page](https://console.scaleway.com/instance/servers) displays.
25
+
1. Click **CPU & GPU Instances** in the **Compute** section of the side menu. The [Instances page](https://console.scaleway.com/instance/servers) displays.
26
26
2. Click the **Images** tab. A list of your images displays.
27
27
3. Click **+ Create image**. The image creation page displays.
28
28
4. Choose the **Availability Zone** in which you want your image to be created.
Supported arguments for the image create commmand include:
54
+
```
55
+
ARGS:
56
+
[name=<generated>] Name of the image
57
+
snapshot-id UUID of the snapshot that will be used as root volume in the image
58
+
arch Architecture of the image (unknown_arch | x86_64 | arm | arm64)
59
+
[additional-volumes.{index}.id] UUID of the snapshot to add
60
+
[additional-volumes.{index}.name] Name of the additional snapshot
61
+
[additional-volumes.{index}.size] Size of the additional snapshot
62
+
[additional-volumes.{index}.volume-type] Underlying volume type of the additional snapshot (l_ssd | b_ssd | unified | scratch | sbs_volume | sbs_snapshot)
63
+
[additional-volumes.{index}.project-id] Project ID that own the additional snapshot
64
+
[project-id] Project ID to use. If none is passed the default project ID will be used
65
+
[tags.{index}] Tags of the image
66
+
[public] True to create a public image
67
+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
68
+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
@@ -33,7 +33,7 @@ More information on the QCOW2 file format and how to use it can be found in the
33
33
For this guide, we assume you have an Instance running in the `fr-par-1` AZ, your Object Storage bucket is located in the region `fr-par`, and you want to create a new Instance in the `fr-par-2` AZ.
34
34
</Message>
35
35
36
-
1. Click the [Instances section](https://console.scaleway.com/instance/servers) of the Scaleway console, then click the Instance you want to snapshot.
36
+
1. Click the [CPU & GPU Instances section](https://console.scaleway.com/instance/servers) of the Scaleway console, then click the Instance you want to snapshot.
37
37
2. The Instance overview displays. Click the **Storage** tab to display the storage resources attached to the Instance. Scroll to the **Snapshots** section of the page.
38
38
3. Click the name of the snapshot you want to export. The snapshot overview displays.
39
39
4. Click **Actions** then select **Copy to bucket**. A pop-up displays. Enter the file name for your exported snapshot copy and select the destination bucket. Then click **Copy snapshot to bucket**.
@@ -45,7 +45,7 @@ For this guide, we assume you have an Instance running in the `fr-par-1` AZ, you
45
45
Depending on the size of your snapshot, the export to Object Storage may take some time. It is ready once the status indicator changes to green.
46
46
</Message>
47
47
2. Click <Iconname="more" /> next to the snapshot copy, then click **Import as snapshot**. A pop-up will appear. Enter the name of the snapshot, select the destination AZ, and choose the snapshot type.
48
-
The type can be either **Local SSD** or **Block SSD**. Click **Import file as snapshot** to import the snapshot into the destination AZ.
48
+
The type can be either **Local Storage** or **Block Storage**. Click **Import object as snapshot** to import the snapshot into the destination AZ.
49
49
<Messagetype="important">
50
50
- Ensure that the QCOW / QCOW2 image file you want to import uses the file extension `.qcow` or `.qcow2` to avoid issues during import.
51
51
- Imported snapshots must have a volume size between 1 GB and 1 TB.
0 commit comments