From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Clone a running gentoo machine onto another machine
Date: Sun, 30 Mar 2008 21:05:11 +0100 [thread overview]
Message-ID: <20080330210511.3421cd0d@loonquawl.digimed.co.uk> (raw)
In-Reply-To: <47EFEEA6.9080402@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-03-30 20:06 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 [this message]
2008-04-01 19:53 ` Eric Martin
2008-04-01 20:45 ` Dan Cowsill
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=20080330210511.3421cd0d@loonquawl.digimed.co.uk \
--to=neil@digimed.co.uk \
--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