3 (C) Copyright Canonical Ltd. 2014
6 Tycho Andersen <tycho.andersen@canonical.com>
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 <!DOCTYPE refentry PUBLIC @docdtd@ [
26 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
27 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
32 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
35 <refentrytitle>lxc-checkpoint</refentrytitle>
36 <manvolnum>1</manvolnum>
40 <refname>lxc-checkpoint</refname>
43 checkpoint a container
49 <command>lxc-checkpoint</command>
50 <arg choice="req">-n <replaceable>name</replaceable></arg>
51 <arg choice="req">-D <replaceable>PATH</replaceable></arg>
52 <arg choice="opt">-r</arg>
53 <arg choice="opt">-s</arg>
54 <arg choice="opt">-v</arg>
55 <arg choice="opt">-d</arg>
56 <arg choice="opt">-F</arg>
61 <title>Description</title>
63 <command>lxc-checkpoint</command> checkpoints and restores containers.
68 <title>Options</title>
73 <option>-r, --restore</option>
77 Restore the checkpoint for the container, instead of dumping it.
78 This option is incompatible with <option>-s</option>.
85 <option>-D <replaceable>PATH</replaceable>, --checkpoint-dir=<replaceable>PATH</replaceable></option>
89 The directory to dump the checkpoint metadata.
96 <option>-s, --stop</option>
100 Optionally stop the container after dumping. This option is
101 incompatible with <option>-r</option>.
108 <option>-v, --verbose</option>
112 Enable verbose criu logging.
119 <option>-d, --daemon</option>
123 Restore the container in the background (this is the default).
124 Only available when providing <option>-r</option>.
131 <option>-F, --foreground</option>
135 Restore the container in the foreground. Only available when
136 providing <option>-r</option>.
147 <title>Examples</title>
151 <term>lxc-checkpoint -n foo -D /tmp/checkpoint</term>
154 Checkpoint the container foo into the directory /tmp/checkpoint.
160 <term>lxc-checkpoint -r -n foo -D /tmp/checkpoint</term>
163 Restore the checkpoint from the directory /tmp/checkpoint.
174 <title>Author</title>
175 <para>Tycho Andersen <email>tycho.andersen@canonical.com</email></para>
179 <!-- Keep this comment at the end of the file
184 sgml-minimize-attributes:nil
185 sgml-always-quote-attributes:t
188 sgml-parent-document:nil
189 sgml-default-dtd-file:nil
190 sgml-exposed-tags:nil
191 sgml-local-catalogs:nil
192 sgml-local-ecat-files:nil