From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5wHT-00018W-5S for qemu-devel@nongnu.org; Mon, 27 Aug 2012 06:10:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5wHM-0004qS-Sc for qemu-devel@nongnu.org; Mon, 27 Aug 2012 06:10:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:48666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5wHM-0004qA-Lv for qemu-devel@nongnu.org; Mon, 27 Aug 2012 06:10:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T5wHM-0007gP-B9 for qemu-devel@nongnu.org; Mon, 27 Aug 2012 12:10:44 +0200 Received: from nat-pool-mxp-t.redhat.com ([209.132.186.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Aug 2012 12:10:44 +0200 Received: from pbonzini by nat-pool-mxp-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Aug 2012 12:10:44 +0200 From: Paolo Bonzini Date: Mon, 27 Aug 2012 12:10:34 +0200 Message-ID: References: <7e7d4bb6-17ab-439b-8ec5-2e4a6a98269d@mailpro> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit In-Reply-To: <7e7d4bb6-17ab-439b-8ec5-2e4a6a98269d@mailpro> Subject: Re: [Qemu-devel] qcow2: online snasphots : internal vs external ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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=image1.qcow2 snap2.qcow2 and use it the next time you start QEMU. Paolo