lxc-snapshot.sgml.in revision 1f92162dc0432b6f7f8156d22348f22934cbea3f
495a749d26f386772dc567e646ef7707c2821030Eileen Bollofflxc: linux Container library
495a749d26f386772dc567e646ef7707c2821030Eileen Bolloff(C) Copyright Canonical Inc. 2007, 2008
495a749d26f386772dc567e646ef7707c2821030Eileen BolloffSerge Hallyn <serge.hallyn at ubuntu.com>
f4ba80b117b547a303335975912cdb3f9183310cDaniel Couto ValeThis library is free software; you can redistribute it and/or
f4ba80b117b547a303335975912cdb3f9183310cDaniel Couto Valemodify it under the terms of the GNU Lesser General Public
f4ba80b117b547a303335975912cdb3f9183310cDaniel Couto ValeLicense as published by the Free Software Foundation; either
f4ba80b117b547a303335975912cdb3f9183310cDaniel Couto Valeversion 2.1 of the License, or (at your option) any later version.
f4ba80b117b547a303335975912cdb3f9183310cDaniel Couto ValeThis library is distributed in the hope that it will be useful,
61fdfd6e7ee93fca56a15fee37d9982528d85a60Sascha Graefbut WITHOUT ANY WARRANTY; without even the implied warranty of
f4ba80b117b547a303335975912cdb3f9183310cDaniel Couto ValeMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Snapshots are stored as snapshotted containers under a private configuration path. For instance, if the container's configuration path is <filename>/var/lib/lxc</filename> and the container is <filename>c1</filename>, then the first snapshot will be stored as container <filename>snap0</filename> under configuration path <filename>/var/lib/lxcsnaps/c1</filename>.
<para> Associate the comment in <replaceable>comment_file</replaceable> with the newly created snapshot.</para>
<para> Restore the named snapshot, meaning a full new container is created which is a copy of the snapshot.</para>
<para> 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.</para>