From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Nl4hd-0003P9-0h for garchives@archives.gentoo.org; Fri, 26 Feb 2010 18:14:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E9ABE0A6F; Fri, 26 Feb 2010 18:13:41 +0000 (UTC) Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.211.182]) by pigeon.gentoo.org (Postfix) with ESMTP id 5D6B4E0A6F for ; Fri, 26 Feb 2010 18:13:41 +0000 (UTC) Received: by ywh12 with SMTP id 12so162846ywh.10 for ; Fri, 26 Feb 2010 10:13:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+p06NrPgvbROgdxOQnnmHLamGK7uJYpdXpIc5Jz1ApI=; b=NCauz7tQPxQjJdUDtzhKlp0vU4EG6ohrxB6sYRc6TgmMEj0yvtndw1UGpUPimKyVy0 8kMpAXvgAJLXDrz8rvPd/PNslskyEoZrXTIbT5Cag71rGnwh4B+1xwkvpi3n9b14Akad ljoHncr/8Z7GQ6fIXCYYjdQKUTTavqMUh7EEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=mFjYwUywwkt/+hiUUtFLrBvTD8v4x76NF2W+fn10wFbUen3hpHzpXV0epJVnlFeL+R MocM5i9TVpPzpSwPDsk3HLgE96dJkjn/xG3xI7bHmmCg1OY1r8H9EAh+Qqr8kRiRZ+8F V0UK+RBjH4HjrudHBTiRg/BFflI6ZQF4Pnm4A= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.101.165.15 with SMTP id s15mr1196787ano.189.1267208020946; Fri, 26 Feb 2010 10:13:40 -0800 (PST) In-Reply-To: <201002261700.23925.wonko@wonkology.org> References: <87hbpdotge.fsf@newsguy.com> <3ac129341002260359h2066deeby135975b1d1b19368@mail.gmail.com> <854dca5c1002260746k48e40be4pcc4d4b6ece79add2@mail.gmail.com> <201002261700.23925.wonko@wonkology.org> Date: Fri, 26 Feb 2010 10:13:40 -0800 Message-ID: <854dca5c1002261013x34878cadq684a2748f2b0204a@mail.gmail.com> Subject: Re: [gentoo-user] When copying an os to new disk From: Kyle Bader To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d534c5d1-2fe1-4908-b9a8-3df40bc7b4b0 X-Archives-Hash: dfd9cd8fd92834abb4f0a9ec00f99689 >> tar cf - $old_dir | ( cd $new_dir: tar xf - ) >> tar cf - $old_dir | ssh $other_host "( cd $new_dir: tar xf - )" > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^ > The ':' separating commands should be a ';'. Using the -C option would be > a little easier, but your method also would work for star. This piping > through ssh is quite cool, isn't it. whoops, good catch! > If $old_dir is the root partition, I would bin-mount it first to somewher= e > else, so other directories mounted to it (especially/dev, /proc and /sys) > are not copied: > mount -o bind / /mnt > old_dir=3D/mnt that too, copying over /proc/kcore is never fun ;P --=20 Kyle