Skip to content

Command for restoring an instance using a snapshot #1905

@Meryem-tech

Description

@Meryem-tech

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions