From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Jsnqd-0006zO-2f for garchives@archives.gentoo.org; Sun, 04 May 2008 23:42:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7D4DE02F1; Sun, 4 May 2008 23:40:40 +0000 (UTC) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by pigeon.gentoo.org (Postfix) with ESMTP id B2BEFE02F1 for ; Sun, 4 May 2008 23:40:40 +0000 (UTC) Received: by an-out-0708.google.com with SMTP id c28so525284ana.47 for ; Sun, 04 May 2008 16:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=cKB7PcyX9GLxbYklxFbS0PXQj+pzrMLibRDDrXU1VhE=; b=ZJYmI17kW2Xkwefdb92r7yTsrIX+EC/56vHfbUXaOd59qxXWCPXc4QhVcx5MfyXyBPLl82gFQLtlKUIYmPB0eFY5IftEkhJruAjydptPw0rk3uJBxsqoa6Pk1DPvZR03N3RdfOTOJ/J5pQ9CvDWXzOp0zA36a1hx0VMbSXhIGiU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vA2BmClkXmcBh5eHCCfs80HWaCzbxcN4ERIMyC57zcyMP2EY+NB1rangjbnyTFJECEzFItqqTRJaMBzLe0M1iuPUJu7fxV2CxdTMLevkrUP7iJvZ1h/qX6JoQMrdEBCEUDK8yLapJB6oWU65OGXD18jzIEO22X2rUzhOqMpNsOo= Received: by 10.100.214.19 with SMTP id m19mr7015414ang.1.1209942728215; Sun, 04 May 2008 16:12:08 -0700 (PDT) Received: by 10.100.12.15 with HTTP; Sun, 4 May 2008 16:12:08 -0700 (PDT) Message-ID: <5bdc1c8b0805041612j5f958d4cred584a5cfc929efc@mail.gmail.com> Date: Sun, 4 May 2008 16:12:08 -0700 From: "Mark Knecht" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] tar a brand new Gentoo install to a USB drive for safe keeping? In-Reply-To: <5bdc1c8b0805040825w2a647669x15b8762422491655@mail.gmail.com> 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5bdc1c8b0805031806k7a14e6d3v910c0957bd514e98@mail.gmail.com> <481D8E3B.10606@gnoo.eu> <5bdc1c8b0805040825w2a647669x15b8762422491655@mail.gmail.com> X-Archives-Salt: 568ff22e-b4c8-4d63-bb9e-d439b1492151 X-Archives-Hash: ac54412a4aaa01cc263ce96dbc3bc2ef On Sun, May 4, 2008 at 8:25 AM, Mark Knecht wrote: > Jil & Neil, > Thanks for the really great information! I'm going to give this a try today. > > It strikes me that to test my backup I could create a chroot on the > very system I'm backing up. (Or some other system.) I follow the > procedure we're outlining here using the install CD and when it's done > I reboot the system, create a few small partitions in some extra disk > space, untar the files, chroot into that environment, run some > commands to test things, and then put the tar'ed files away for safe > keeping feeling pretty good that everything is where I need it should > the worst happen. > > Again, thanks for the info. I do appreciate it. > > Cheers, > Mark > Hi all, So I'm working on this and ran into a couple of questions about tar. 1) I'm having trouble figuring how to best run tar. I end up with files at the wrong level every time so far. Assume I first mount a partition that's empty, and then mount a partition I want to save that contains a number of system directories - /, tmp, etc. lib, mnt and others: mount /dev/sda8 /mnt/gentoo [[ This is empty except for a mount point called TarPoint ]] cd /mnt/gentoo mount /dev/sda5 TarPoint [[ The partition I want to backup ]] Now I can see all my directories under TarPoint. What's the best way to run tar, creating a file called SYSTEM.tar.bz2 in /mnt/gentoo, so that later, when I have an empty partition on a different hard drive (hda) where I'm going to restore the system, I can do this mount /dev/hda11 /mnt/gentoo cd /mnt/gentoo scp mark@server:SYSTEM.tar.bz2 . tar xvfp SYSTEM.tar.bz2 and I get the system directory hierarchy back again. 2) This laptop is a dual boot machine so the system clock is set to local when I'm in my Gentoo environment. When I drop into the install CD I presume it's set to UTC as is the standard. My question has to do with any requirements to setting time prior to making the tar ball or untarring to build the environment. What I'm seeing is that the command tar xcjf SYSTEM.tar.bz2 generates lots of messages about file times being in the future. Maybe this won't matter if I use the backup later than 8 hours from the time I make it but in the short term will it cause any problems? Thanks, Mark -- gentoo-user@lists.gentoo.org mailing list