Difference between revisions of "CentOS 7.x lxc container snapshot"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>CentOS_7.x_lxc|CentOS 7.x lxc</yambe:breadcrumb> =CentOS 7.x lxc container snapshot= To take snapshot for lxc container use: <pre> lxc-snapshot -n centos...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>CentOS_7.x_lxc|CentOS 7.x lxc</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x virtualization|Virtualization]] > [[CentOS 7.x lxc|Lxc]] > [[CentOS 7.x lxc container snapshot]]
=CentOS 7.x lxc container snapshot=


To take snapshot for lxc container use:
To take snapshot for lxc container use:
Line 21: Line 20:
</pre>
</pre>
where snap0 is desried snapshot and centos_lxc is the name of the container
where snap0 is desried snapshot and centos_lxc is the name of the container
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x virtualization|Virtualization]] > [[CentOS 7.x lxc|Lxc]] > [[CentOS 7.x lxc container snapshot]]

Latest revision as of 09:02, 25 August 2022

Home > CentOS > CentOS 7.x > Virtualization > Lxc > CentOS 7.x lxc container snapshot

To take snapshot for lxc container use:

   lxc-snapshot -n centos_lxc

where centos_lxc should be replaced with name of container. Snapshots are created in '/var/lib/lxcsnaps/' folder. Note that snapshot can be taken only for stopped containers.


To list snapshots use:

   lxc-snapshot -L -n centos_lxc

where centos_lxc should be replaced with name of container


To restore particular snapshost use:

   lxc-snapshot -r snap0 -n centos_lxc

where snap0 is desried snapshot and centos_lxc is the name of the container



Home > CentOS > CentOS 7.x > Virtualization > Lxc > CentOS 7.x lxc container snapshot