From owner-freebsd-questions@FreeBSD.ORG Sat Aug 19 03:58:51 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0A8CE16A4DD for ; Sat, 19 Aug 2006 03:58:51 +0000 (UTC) (envelope-from malcolm.kay@internode.on.net) Received: from ash25e.internode.on.net (ash25e.internode.on.net [203.16.214.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6047143D4C for ; Sat, 19 Aug 2006 03:58:50 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from alpha.home (ppp144-64.lns3.adl2.internode.on.net [59.167.144.64]) by ash25e.internode.on.net (8.13.6/8.13.5) with ESMTP id k7J3wk5P041236; Sat, 19 Aug 2006 13:28:48 +0930 (CST) (envelope-from malcolm.kay@internode.on.net) From: Malcolm Kay Organization: at home To: Odhiambo Washington , freebsd-questions@freebsd.org Date: Sat, 19 Aug 2006 13:28:45 +0930 User-Agent: KMail/1.8 References: <20060817155121.GA93194@ns2.wananchi.com> In-Reply-To: <20060817155121.GA93194@ns2.wananchi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608191328.45959.malcolm.kay@internode.on.net> Cc: Subject: Re: Mounting a snapshot of a file system 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: Sat, 19 Aug 2006 03:58:51 -0000 On Fri, 18 Aug 2006 01:21 am, Odhiambo Washington wrote: > Hi all, > > I believe that this might be possible.. > > I have created a snapshot of a filesystem and moved it to a > remote host: > > dump -L0af - / | ssh remote_host 'gzip > snapshot.gz' > > Now I have the file snapshot.gz on the remote host. > > Two questions: > > 1. How can I mount this snapshot and access its contents? # zcat snapshot.gz | restore -i -f - See the restore(8) man page. > 2. How can I use this snapshot to create another system (a > clone)? This question leaves me wondering whether you realise that dump only backsup a single partition. From your dump you can only clone the root partition which usually is quite small and does not on its own lead to a useful system. Anyway to restore this you need to create a suitable partition, initialise it with newfs, mount the partition, cd into the partition and then run restore -r. Again look at the restore(8) man page. Malcolm > > Thank you for today ;) > > > > -Wash >