From: "Dan Cowsill" <danthehat@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Clone a running gentoo machine onto another machine
Date: Tue, 1 Apr 2008 16:45:49 -0400 [thread overview]
Message-ID: <4ef07b8c0804011345x5aca0346hc034d95365a1bb91@mail.gmail.com> (raw)
In-Reply-To: <20080330210511.3421cd0d@loonquawl.digimed.co.uk>
On Sun, Mar 30, 2008 at 4:05 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Sun, 30 Mar 2008 15:48:54 -0400, Hal Martin wrote:
>
> > You cannot use tar unless you create an exclude file, as it will copy
> > the contents of /dev and /sys, which means the entire contents of RAM,
> > and anything that is currently being generated by your devices will be
> > copied as well.
> >
> > Personally, I would use either tar or rsync to do this, however, in
> > saying that, I have never actually done this with a live system. This is
> > the tar command I use for copying inactive systems, and it works quite
> > well.
> >
> > (cd /mnt/source; tar cfpl - .) | (cd /mnt/dest; tar xfp -)
> >
> > I assume you could just generate an exclude file, and include that in
> > the first command
>
> You don't need an exclude file to avoid /dev and /sys because they are on
> separate filesystems, so your use of -l takes care of this.
>
> Rsync may work, or it may complain that files have changed between
> building the list and copying them and you'd need to use -x to do the
> same as -l with tar. Either way, shut down as many services as possible
> during the copy, particularly anything that uses databases.
>
>
> --
> Neil Bothwick
>
> If you got the words it does not mean you got the knowledge.
>
Now, correct me if I'm wrong, but I had read that if you don't copy
the files in /dev, udev won't mount properly on the machine you're
cloning to and all hell will break lose. Also, iirc, I believe I
tarred a running machine (including /dev, excluding /sys) and the
clone was successful.
Any thoughts?
--
Dan Cowsill
http://www.danthehat.net
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-04-01 20:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-30 19:29 [gentoo-user] Clone a running gentoo machine onto another machine Benyamin Dvoskin
2008-03-30 19:48 ` Hal Martin
2008-03-30 20:05 ` Neil Bothwick
2008-04-01 19:53 ` Eric Martin
2008-04-01 20:45 ` Dan Cowsill [this message]
2008-04-01 20:55 ` Steven Lembark
2008-04-01 20:55 ` Neil Bothwick
2008-04-01 21:13 ` Dan Cowsill
2008-03-30 20:05 ` Michal 'vorner' Vaner
2008-03-30 20:40 ` Tim
2008-03-30 21:52 ` Benyamin Dvoskin
2008-03-31 15:29 ` YoYo Siska
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=4ef07b8c0804011345x5aca0346hc034d95365a1bb91@mail.gmail.com \
--to=danthehat@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