scaleway-cli icon indicating copy to clipboard operation
scaleway-cli copied to clipboard

Command for restoring an instance using a snapshot

Open Meryem-tech opened this issue 4 years ago • 0 comments

Description

In the restore instance part, one solution I wanted to apply was

  1. Creating a snapshot first.
  2. Power off the instance in order to detach the volume
  3. Attach the volume of the snapshot to the instance.

How this functionality would be exposed

I thought I could use this command

scw instance server attach-volume server-id=your-server-id volume-id=your-volume-id replacing the volume-id with the snapshot id to attach the volume. Can you make it work?

Another option would be to have a restore verb inside the server resource.

References

Version

Version 2.3.0 BuildDate unknown GoVersion go1.16 GitBranch unknown GitCommit unknown GoArch amd64 GoOS darwin

Meryem-tech avatar May 11 '21 15:05 Meryem-tech