From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5z8E-0008My-Fv for qemu-devel@nongnu.org; Mon, 27 Aug 2012 09:13:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5z86-0004i1-4L for qemu-devel@nongnu.org; Mon, 27 Aug 2012 09:13:30 -0400 Received: from mailpro.odiso.net ([89.248.209.98]:54270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5z85-0004hr-UJ for qemu-devel@nongnu.org; Mon, 27 Aug 2012 09:13:22 -0400 Date: Mon, 27 Aug 2012 15:12:56 +0200 (CEST) From: Alexandre DERUMIER Message-ID: <0aba67bf-a2fb-4e35-9411-b7896dce0e37@mailpro> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] qcow2: online snasphots : internal vs external ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Ok, got it, Thanks Paolo ! ----- Mail original ----- De: "Paolo Bonzini" =C3=80: qemu-devel@nongnu.org Envoy=C3=A9: Lundi 27 Ao=C3=BBt 2012 12:10:34 Objet: Re: [Qemu-devel] qcow2: online snasphots : internal vs external ? Il 27/08/2012 11:26, Alexandre DERUMIER ha scritto: > how can I rollback to the point of the snapshot. > > exemple : > image1.qcow2 > file : /beforesnap1 > take a snaphot (snap1), so qemu switch to snap1.qcow2 > write some file: > file: > /aftersnap1. > /beforesnap1 > > Now, how can I rollback to the point of time of snap1 ? > I can reuse image1.qcow2, but if I write some datas on it, I don't > see how I can return to the point of time of the snap1. (like qemu-image = -a > with internal snapshots) If you can drop snap1.qcow2 altogether, you just use image1.qcow2 the next time you start QEMU. If you cannot, you create snap2.qcow2 based on image1.qcow2: qemu-img -f qcow2 -obacking_file=3Dimage1.qcow2 snap2.qcow2 and use it the next time you start QEMU. Paolo -- -- Alexandre D e rumier Ing=C3=A9nieur Syst=C3=A8mes et R=C3=A9seaux Fixe : 03 20 68 88 85 Fax : 03 20 68 90 88 45 Bvd du G=C3=A9n=C3=A9ral Leclerc 59100 Roubaix 12 rue Marivaux 75002 Paris