<a id="lxc-restore-md"></a>

# `lxc restore`

Restore instances from snapshots

## Synopsis

Description:
Restore instances from snapshots

If –stateful is passed, then the running state will be restored too.

```default
lxc restore [<remote>:]<instance> <snapshot> [flags]
```

## Examples

```default
  lxc snapshot u1 snap0
      Create the snapshot.

  lxc restore u1 snap0
      Restore the snapshot.
```

## Options

```default
      --stateful   Whether or not to restore the instance's running state from snapshot (if available)
```

## Options inherited from parent commands

```default
      --debug          Show all debug messages
      --force-local    Force using the local unix socket
  -h, --help           Print help
      --project        Override the source project
  -q, --quiet          Don't show progress information
      --sub-commands   Use with help or --help to view sub-commands
  -v, --verbose        Show all information messages
      --version        Print version number
```

## SEE ALSO

* [lxc](https://canonical.com/lxd/docs/default/reference/manpages/lxc/index.html.md#lxc-md)	 - Command line client for LXD
