Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2002 05:21:07 +0100
From:      Cliff Sarginson <csfbsd@raggedclown.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: copy everythin (/) from one machine to remote machine
Message-ID:  <20020220042107.GB11089@raggedclown.net>
In-Reply-To: <20020219163857.J48401@blossom.cjclark.org>
References:  <002701c1b991$48ec5990$0d00a8c0@alexus> <20020219163857.J48401@blossom.cjclark.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 19, 2002 at 04:38:57PM -0800, Crist J. Clark wrote:
> On Tue, Feb 19, 2002 at 05:03:38PM -0500, alexus wrote:
> > hello
> > 
> > how would I go about making copy of everything that is on one machine to
> > another machine?
> > considering that both machines are not on same network and not even
> > physically close to each other
> > and I want to copy everything from one machine / to another with all
> > permissions and every thing
> > can I do tar everything one machine and untar it on another?
> 
> A dump(8)/restore(8) is usually the best way to copy a partition.
> 
>   # dump -0af - / | ssh remote-machine 'restore -xf -'
> 
> Is always fun. Depends on your exact circumstances.
> 
> > if it's
> > possible, then supposedly it'd solve my situation but how would I make that
> > other hard drive bootable?
> 
> See fdisk(8) and disklabel(8). Usually something like,
> 
>   # fdisk -B ad0
>   # disklabel -B ad0s1
> 
> Will do it.

Don't use tar(1) for this purpose.
It does not handle special files properly (those in /dev).

-- 
Regards
   Cliff Sarginson -- <csfbsd@raggedclown.net>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020220042107.GB11089>