Date: Sat, 19 Aug 2006 13:28:45 +0930 From: Malcolm Kay <malcolm.kay@internode.on.net> To: Odhiambo Washington <wash@wananchi.com>, freebsd-questions@freebsd.org Subject: Re: Mounting a snapshot of a file system Message-ID: <200608191328.45959.malcolm.kay@internode.on.net> In-Reply-To: <20060817155121.GA93194@ns2.wananchi.com> References: <20060817155121.GA93194@ns2.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608191328.45959.malcolm.kay>
