Re: Mounting a snapshot of a file system

2006-08-19 Thread Odhiambo Washington
* On 19/08/06 13:28 +0930, Malcolm Kay wrote:
| 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.

Thanks for this. I did read the restore man page, but I missed the
point. I'll stop working late into the night!


| > 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.

I know that fact. I needed to have clarified that this dump is
actually the "whole system, all partitions". In this particular
case, the disk is divided into two, swap (2.5xRAM) and / only.

| 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.

Oops... putting on my worn out boots and running to restore(8).
Thank you very very much. My actual problem was that I read too much
of the dump(8), until I simply got dumped ;)
 

Best regards,
Odhiambo Washington
Systems Admin,
Wananchi Online Ltd.

Are you hosting your domain name with the leaders??: 
See http://webhosting.info/webhosts/tophosts/Country/KE


DISCLAIMER: See http://www.wananchi.com/bms/terms.php
--+-
 Odhiambo WASHINGTON. WANANCHI ONLINE LTD (Nairobi, KE)
 http://www.wananchi.com/email/ . 1ere Etage, Laptrust Plaza, Loita St.,
 Mobile: (+254) 722 743 223 . # 10286, 00100 NAIROBI
--+-
Even a stopped clock gives the right time twice a day...
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting a snapshot of a file system

2006-08-18 Thread Malcolm Kay
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
>

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Mounting a snapshot of a file system

2006-08-17 Thread Odhiambo Washington
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?
2. How can I use this snapshot to create another system (a clone)?

Thank you for today ;)



-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+==+
|\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+==+

Quigley's Law:
Whoever has any authority over you, no matter how small, will
atttempt to use it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"