From: Lukas Laukamp Subject: Re: [User Question] How to create a backup of an LVM based maschine without wasting space Date: Sun, 14 Oct 2012 00:25:32 +0200 Message-ID: <5079EA5C.8040600@laukamp.me> References: <5077BE30.5010209@laukamp.me> <20121012084221.GC14822@stefanha-thinkpad.redhat.com> <5077DB9F.6050809@laukamp.me> <5077E03E.2040507@laukamp.me> <5077EDEB.6050703@laukamp.me> <5077F600.7080809@laukamp.me> <50785DEE.6060204@laukamp.me> <50786EEC.2030507@laukamp.me> <5078841A.6040706@laukamp.me> <50794242.3020407@laukamp.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Stefan Hajnoczi , kvm@vger.kernel.org To: Javier Guerra Giraldez Return-path: Received: from mailer0.lippux.de ([5.9.218.245]:41027 "EHLO mailer0.lippux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648Ab2JMWZn (ORCPT ); Sat, 13 Oct 2012 18:25:43 -0400 In-Reply-To: <50794242.3020407@laukamp.me> Sender: kvm-owner@vger.kernel.org List-ID: Am 13.10.2012 12:28, schrieb Lukas Laukamp: > Am 12.10.2012 23:53, schrieb Javier Guerra Giraldez: >> On Fri, Oct 12, 2012 at 3:56 PM, Lukas Laukamp wrote: >>> I think that it must be possible to create an image with a size like >>> the >>> used space + a few hundret MB with metadata or something like that. >> the 'best' way to do it is 'from within' the VM >> >> the typical workaround is to mount/fsck a LVM snapshot (don't skip the >> fsck, or at least a journal replay) >> >> beyond that, there are a few utilities for specific filesystems: >> PartImage [1], dump/restore [2], and i'm sure some others. I don't >> know how would these behave with unclean images, which is what you get >> if you pull the image under the VM's feet. >> >> >> [1] http://www.partimage.org/Main_Page >> [2] http://dump.sourceforge.net/ >> >> > > So when I boot the VM with for example a live debian system, what > would be the best method to backup the complete disk /dev/vda with > only the data which is on it over a secure network connection to a > destination in the network. > > Best Regards > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html I have backed up the data within the machine with partimage and fsarchiver. But it would be greate to have a better way than doing this over a live system. Best Regards