SYNOPSIS

lxc-snapshot \kx {-n, --name name} [-c, --comment file] lxc-snapshot \kx {-n, --name name} {-d, -destroy snapshot-name} lxc-snapshot \kx {-n, --name name} {-L, --list } [-C, --showcomments ] lxc-snapshot \kx {-n, --name name} {-r, -restore snapshot-name} [ newname]

DESCRIPTION

lxc-snapshot creates, lists, and restores container snapshots.

Snapshots are stored as snapshotted containers under a private configuration path. For instance, if the container's configuration path is \*(T</var/lib/lxc\*(T> and the container is \*(T<c1\*(T>, then the first snapshot will be stored as container \*(T<snap0\*(T> under configuration path \*(T</var/lib/lxcsnaps/c1\*(T>.

OPTIONS

\*(T<-c,--comment \*(T>comment_file

Associate the comment in comment_file with the newly created snapshot.

\*(T<-d,--destroy snapshot-name\*(T>

Destroy the named snapshot.

\*(T<-L,--list \*(T>

List existing snapshots.

\*(T<-C,--showcomments \*(T>

Show snapshot comments in the snapshots listings.

\*(T<-r,--restore snapshot-name\*(T>

Restore the named snapshot, meaning a full new container is created which is a copy of the snapshot.

\*(T<newname\*(T>

When restoring a snapshot, the last optional argument is the name to use for the restored container. If no name is given, then the original container will be destroyed and the restored container will take its place. Note that deleting the original snapshot is not possible in the case of aufs, overlayfs or zfs backed snapshots.

COMMON OPTIONS

These options are common to most of lxc commands.

\*(T<-?, -h, --help\*(T>

Print a longer usage message than normal.

\*(T<--usage\*(T>

Give the usage message

\*(T<-q, --quiet\*(T>

mute on

\*(T<-P, --lxcpath=\*(T>PATH

Use an alternate container path. The default is /var/lib/lxc.

\*(T<-o, --logfile=\*(T>FILE

Output to an alternate log FILE. The default is no log.

\*(T<-l, --logpriority=\*(T>LEVEL

Set log priority to LEVEL. The default log priority is \*(T<ERROR\*(T>. Possible values are : \*(T<FATAL\*(T>, \*(T<CRIT\*(T>, \*(T<WARN\*(T>, \*(T<ERROR\*(T>, \*(T<NOTICE\*(T>, \*(T<INFO\*(T>, \*(T<DEBUG\*(T>.

Note that this option is setting the priority of the events log in the alternate log file. It do not have effect on the ERROR events log on stderr.

\*(T<-n, --name=\*(T>NAME

Use container identifier NAME. The container identifier format is an alphanumeric string.

RELATED TO lxc-snapshot…

AUTHOR

Serge Hallyn <\*(T<[email protected] \*(T>>