lxc restore help is unclear
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Released
|
Medium
|
Tycho Andersen |
Bug Description
| $ lxc help restore
| Set the current state of a resource back to what it was when it was snapshotted.
|
| lxc restore [remote:]<resource> <snapshot name> [--stateful]
| $
The use of 'resource' is confusing as it's not used anywhere else
except for in 'help list'. Can anything other than a container be
restored?
--stateful is mentioned but not documented/
Lastly it's not obvious what '<snapshot name>' means, especially given
the output of 'lxc list':
| $ lxc list
| +------
| | NAME | STATE | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS |
| +------
| | unvisceral-samira | RUNNING | 10.0.3.193 | | NO | 1 |
| +------
| Snapshots:
| /1.0/containers
| $
I tried several variations before finding 'snap0' is what was
expected.
Hi James,
On Wed, Jan 06, 2016 at 10:32:48PM -0000, James Troup wrote: explained. ------- ------+ ------- --+---- ------- -+----- -+----- ------+ ------- ----+ ------- ------+ ------- --+---- ------- -+----- -+----- ------+ ------- ----+ ------- ------+ ------- --+---- ------- -+----- -+----- ------+ ------- ----+ /unvisceral- samira/ snapshots/ snap0
> Public bug reported:
>
> | $ lxc help restore
> | Set the current state of a resource back to what it was when it was snapshotted.
> |
> | lxc restore [remote:]<resource> <snapshot name> [--stateful]
> | $
>
> The use of 'resource' is confusing as it's not used anywhere else
> except for in 'help list'. Can anything other than a container be
> restored?
>
> --stateful is mentioned but not documented/
>
> Lastly it's not obvious what '<snapshot name>' means, especially given
> the output of 'lxc list':
>
> | $ lxc list
> | +------
> | | NAME | STATE | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS |
> | +------
> | | unvisceral-samira | RUNNING | 10.0.3.193 | | NO | 1 |
> | +------
> | Snapshots:
> | /1.0/containers
> | $
>
> I tried several variations before finding 'snap0' is what was
> expected.
Thanks, I've posted an update to the help here:
https:/ /github. com/lxc/ lxd/pull/ 1480
Does that seem reasonable?