From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Icpgs-0005nv-F2 for garchives@archives.gentoo.org; Tue, 02 Oct 2007 21:54:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l92LhmRC011278; Tue, 2 Oct 2007 21:43:48 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l92LdQYW006230 for ; Tue, 2 Oct 2007 21:39:26 GMT Received: by ug-out-1314.google.com with SMTP id j3so6149ugf for ; Tue, 02 Oct 2007 14:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=hPkjq9JM0uI7R53peUJ2/rvFK2gNzK0HFYNiRzon0Ac=; b=UnFEKv9n8/JcCyLr8BOVldFEq0SSQpU+gc1398vWO6s04FJQoqHERp+9lcl+7v1sP4cKpI6tnXUEirAkSCQTkZA7HI+n8DSwMuSk7Co6l2+GSW1Bv+f2kPYiHA5C+LonidGsQaN0vtJp0jAWEAwzF08ketTDLNVnSZBMSe+HFBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=MQCRYQe9KTAhXV8Mb7PtmmVhtwvX5+PZU/zXZ9BdrTGbRAuqPp0r2mTmu2HQH+gSaHplyyDOmJipYmH8BiTKboB2X1c3GtyjZtlyYczTQw9jxLP0LNdFaE00FCHuSWKHxsJrvYRQ+BxVu+itvNoGoaVZXJUKVMah74t0pcfLm+E= Received: by 10.66.221.6 with SMTP id t6mr1628337ugg.1191361165938; Tue, 02 Oct 2007 14:39:25 -0700 (PDT) Received: from ?192.168.0.2? ( [88.67.43.254]) by mx.google.com with ESMTPS id e1sm2756011ugf.2007.10.02.14.39.24 (version=SSLv3 cipher=RC4-MD5); Tue, 02 Oct 2007 14:39:25 -0700 (PDT) Message-ID: <4702BA87.80204@googlemail.com> Date: Tue, 02 Oct 2007 23:39:19 +0200 From: Daniel Pielmeier User-Agent: Thunderbird 2.0.0.6 (X11/20071001) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Migrating a system References: <4702ADE3.5040105@electronsweatshop.com> In-Reply-To: <4702ADE3.5040105@electronsweatshop.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: b4e5e2b6-440a-4c43-b0f0-26dd1b03f1a2 X-Archives-Hash: 16ce9db00459f6da63177dcae737b466 Randy Barlow schrieb: > So I was an idiot when I set up my system and didn't use LVM. Now that > I'm out of disk space on one of my drives and kicking myself, I want to > do it without doing a reinstall. If I use tar -cvjpf > oldSystemThatShouldStillWorkWhenUnTarred.tar.bz2 /, then setup LVM, then > tar all that junk back to the new system via tar -xvpf > oldSystemThatShouldStillWorkWhenUnTarred.tar.bz2 with / as my working > directory, should that do the trick (with, of course, another go at > grub-install)? Is the -p flag to tar enough to store ALL the necessary > file system information? I just want to make sure I'm not forgetting > anything... > > P.S. And I'll have to build LVM support into the kernel too... > > R >>From time to time i backup my complete system to avoid a reinstall after failures. I used something like this and it worked for me (tested it after a hard drive crash)! tar --atime-preserve --same-owner --numeric-owner -Spvcjf back.tar.bz2 / Maybe some flags are not necessary but --same owner would be a good option to preserve the user and group permissions of the files too, as i don't know if -p already covers this. Also take care to mount all partitions you want to backup! I don't know about lvm as i did not use a logical-volume-manager this time and now i use lvm within evms. -- gentoo-user@gentoo.org mailing list