public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Daniel Pielmeier <daniel.pielmeier@googlemail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Migrating a system
Date: Tue, 02 Oct 2007 23:39:19 +0200	[thread overview]
Message-ID: <4702BA87.80204@googlemail.com> (raw)
In-Reply-To: <4702ADE3.5040105@electronsweatshop.com>

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



  reply	other threads:[~2007-10-02 21:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-02 20:45 [gentoo-user] Migrating a system Randy Barlow
2007-10-02 21:39 ` Daniel Pielmeier [this message]
2007-10-03  5:59   ` Randy Barlow
2007-10-03  6:14     ` Daniel Pielmeier
2007-10-03  7:27       ` Mick
2007-10-03  7:41       ` Neil Bothwick
2007-10-02 23:03 ` Björn Ottervik
2007-10-03 17:47 ` Dan Farrell

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=4702BA87.80204@googlemail.com \
    --to=daniel.pielmeier@googlemail.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