From owner-freebsd-questions  Sun Oct  4 01:38:41 1998
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id BAA04286
          for freebsd-questions-outgoing; Sun, 4 Oct 1998 01:38:41 -0700 (PDT)
          (envelope-from owner-freebsd-questions@FreeBSD.ORG)
Received: from abc.xyz.net (froggy.anchorage.ptialaska.net [208.151.119.238])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA04277
          for <freebsd-questions@FreeBSD.ORG>; Sun, 4 Oct 1998 01:38:30 -0700 (PDT)
          (envelope-from groggy@iname.com)
Received: from localhost (localhost [127.0.0.1])
	by abc.xyz.net (8.8.8/8.8.8) with SMTP id AAA01137;
	Sun, 4 Oct 1998 00:38:49 -0800 (AKDT)
	(envelope-from groggy@iname.com)
Date: Sun, 4 Oct 1998 00:38:49 -0800 (AKDT)
From: Steve Howe <groggy@iname.com>
X-Sender: abc@abc.xyz.net
To: "Armando Campble P." <acampble@panama.c-com.net>
cc: freebsd-questions@FreeBSD.ORG
Subject: Re: Change Unix boxes
In-Reply-To: <3616245B.86780662@panama.c-com.net>
Message-ID: <Pine.BSF.3.96.981004003248.442C-100000@abc.xyz.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

On Sat, 3 Oct 1998, Armando Campble P. wrote:

>  How can a move a directory (/home) or a group of directory(mail space
> directory), file structure from one freebsd box to a second box that are
> on the same network keeping the same file structure and owership as well
> as privilige and verify if the file structure is the same on both.

tar and gzip will do this.  but you have to be sure
to groups and users exist in your /etc in the box
you plan to move /usr/home to.  you may want to
copy your /etc  directory over first.

if the box you are planning to move things to does
not have the appropriate groups, then the groups
can't be created when you extract the archive.

you can ftp or sz the files to the new box,
or "split" the home.tar.gz file and move
the pieces by floppy.

useful commands are:

split -b 1572 (for 1.6M formatted floppies)
tar czvf home.tar.gz home (in the /usr dir)

hope this helps.


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