From owner-freebsd-questions@FreeBSD.ORG Mon Jan 4 19:01:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38890106566C for ; Mon, 4 Jan 2010 19:01:17 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id E57C78FC0C for ; Mon, 4 Jan 2010 19:01:16 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id o04IuHbs098522; Mon, 4 Jan 2010 13:56:17 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id o04IuHwP098521; Mon, 4 Jan 2010 13:56:17 -0500 (EST) (envelope-from jerrymc) Date: Mon, 4 Jan 2010 13:56:17 -0500 From: Jerry McAllister To: bsd Message-ID: <20100104185617.GA96455@gizmo.acns.msu.edu> References: <4F9E0B10-F8FB-41BE-8D59-00B29094CCC3@todoo.biz> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4F9E0B10-F8FB-41BE-8D59-00B29094CCC3@todoo.biz> User-Agent: Mutt/1.4.2.2i Cc: Liste FreeBSD Subject: Re: Restoreing Dump on FreeBSD headless server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2010 19:01:17 -0000 On Mon, Jan 04, 2010 at 07:08:51PM +0100, bsd wrote: > Hello folks, > > > I would like to know how to proceed in order to restore a dump from a > backup headless server (remotely using ssh). > How am I supposed to proceed, should I first install the server (a FreeBSD > Fresh install with spare partition) then restore the dump on an empty > partition ? Depends on what you have and what you want to restore. Is the reason for the restore because the old disk went belly up? Or did you just nuke some stuff accidently. Is the restore the boot disk or an extra work disk? In the first case, yes you will need to create something on the disk - some sort of filesystem. Probably that would mean using a fixit image to boot and do an fdisk(8), bsdlabel(8) and newfs(8). It the second case, the filesystem[s] is[are] still intact and you only need to do an 'interactive' restore of just the files you want. IF you are doing an intereactive restore and if you have room, it may be easiest to copy the whole dump file over to some big space on the system and run the restore from that copy. Then you can just ssh in and run it just as if it was setting beside you. The same might not be true if you are replacing a destroyed disk because the restore will be a complete one and no file selecting will be necessary. If you cannot get physical contact with the machine, and the disk was damaged and replaced, you may have to learn how to do a network boot and install. I have never had to do that so am not a good one to guide that process. In either case of having to create slices, partitions and filesystems, you do not have to do a complete system install. You need to do just enough building to have the filesystems created and mountable. The fixit is just fine for that. If you can get that going remotely, then do the fdisk, bsdlabel and newfs-s from that and then restore from the dump to the new filesystems. Forget about doing a real install. > > Should the new empty partition be the exact same size as the dumped > partition ? It just has to be large enough to hold what you restore. In fact, it is a good time to increase or adjust filesystem sizes if you have more room on the replacement disk. > > Is there a tool that could allow me to restore remotely ? > You can use rsh(1). I have done that. Probably some specific ssh method too, but I am so old I haven't done one with that new fangled secure ssh yet... ////jerry > > Any advice or howto will be (very) welcome. > > > Thanks. > > > P.S. Happy new BSD year !! > > > ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ > Gregober ---> PGP ID --> 0x1BA3C2FD > bsd @at@ todoo.biz > ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ > > P "Please consider your environmental responsibility before printing this e-mail" > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >