From owner-freebsd-questions Thu Nov 21 14:54:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2547C37B401 for ; Thu, 21 Nov 2002 14:54:53 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E7A843E88 for ; Thu, 21 Nov 2002 14:54:52 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id gALMsmv27234; Thu, 21 Nov 2002 17:54:48 -0500 (EST) From: Jerry McAllister Message-Id: <200211212254.gALMsmv27234@clunix.cl.msu.edu> Subject: Re: Disk copying To: ertank@softhome.net Date: Thu, 21 Nov 2002 17:54:48 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: from "ertank@softhome.net" at Nov 21, 2002 01:13:20 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Hello, > > I want to backup my disk with all of its contents. Exactly, I want to copy > it completely to another disk. > > I have only one freebsd partition and several slices on my disk. I want to > copy all the data to another bigger disk preserving my user and group > settings. > > Is it possible to use "cp"? In this way I supposed to create my partitions > before and mount them under some partition and just "cp -Rp / /newdisk" but > > Won't it start to copy the data recursively when copying reachs /newdisk? You are better off using dump(8)/restore(8) to make the copies. Alternatively, you could use tar. None of dump/restore, tar or cp will make a bootable disk. You have to do that outside of the process (before tranferring files). If you use dd or some other image copy utilities, you can make it bootable, but it ain't the easiest way. ////jerry > > Just curious. > > Regards, > > -- > Ertan Kucukoglu > ertank@softhome.net > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message