public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mark Knecht" <markknecht@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: Sun, 4 May 2008 16:12:08 -0700	[thread overview]
Message-ID: <5bdc1c8b0805041612j5f958d4cred584a5cfc929efc@mail.gmail.com> (raw)
In-Reply-To: <5bdc1c8b0805040825w2a647669x15b8762422491655@mail.gmail.com>

On Sun, May 4, 2008 at 8:25 AM, Mark Knecht <markknecht@gmail.com> 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



  reply	other threads:[~2008-05-04 23:42 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 [this message]
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
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=5bdc1c8b0805041612j5f958d4cred584a5cfc929efc@mail.gmail.com \
    --to=markknecht@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