From: Ian Graeme Hilt <ian.hilt@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] tar a brand new Gentoo install to a USB drive for safe keeping?
Date: Mon, 5 May 2008 00:04:44 -0400 [thread overview]
Message-ID: <20080505040443.GA29986@sys-0.woh.rr.com> (raw)
In-Reply-To: <5bdc1c8b0805041612j5f958d4cred584a5cfc929efc@mail.gmail.com>
On Sun, May 04, 2008 at 04:12:08PM -0700, Mark Knecht wrote:
> 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
To extract bzip2 files with tar, you need to add the "j" option.
> 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
You have conflicting options there. To extract, use "x". To
create, use "c".
> 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?
Any problems? Probably. They may be inconsequential though.
Follow the instructions below for a possible solution to your
problem.
First, make sure your time is set correctly under UTC with the
date command. For help with it,
<http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5>
Then, you might try setting the TZ variable in the shell
environment to the timezone in which the tar'ed files
resided. Afterwards, untar the tarball. Not sure how this will
work in an "install" environment.
--
Ian Graeme Hilt
ian.hilt (at) gmail.com
GnuPG key: 0x4AFC1EE3
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-05-05 4:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-04 1:06 [gentoo-user] tar a brand new Gentoo install to a USB drive for safe keeping? Mark Knecht
2008-05-04 10:21 ` Jil Larner
2008-05-04 12:29 ` Neil Bothwick
2008-05-04 15:25 ` Mark Knecht
2008-05-04 23:12 ` Mark Knecht
2008-05-05 0:41 ` Mark Shields
2008-05-05 1:20 ` Mark Knecht
2008-05-05 2:54 ` Mark Knecht
2008-05-05 4:04 ` Ian Graeme Hilt [this message]
2008-05-05 8:37 ` Neil Bothwick
2008-05-05 12:17 ` Ian Graeme Hilt
2008-05-05 12:35 ` Neil Bothwick
2008-05-06 12:40 ` [gentoo-user] " Michael Schmarck
2008-05-06 21:33 ` Neil Bothwick
2008-05-08 8:00 ` [gentoo-user] " Michael Schmarck
2008-05-07 16:01 ` [gentoo-user] " Steven Lembark
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080505040443.GA29986@sys-0.woh.rr.com \
--to=ian.hilt@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox