Re: Is doing a network restore from bsd.rd at all possible?

2006-10-21 Thread Henning Brauer
* Michal Soltys <[EMAIL PROTECTED]> [2006-10-21 10:02]:
> smith wrote:
> 
> >
> >If you successfully do this, can you post how you did it?
> >
> 
> The "magic" is in bsd's ftp(1) -o flag, which makes it a bit similar beast 
> to the wget. It can also pull the file using http or, since 4.0, https - 
> check "AUTO-FETCHING FILES" section in the man, it's quite fexible piece of 
> tool.

but on the ramdisks there is a slightly limited version (for space 
reasons), that does not support https (but plain http).

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam



Re: Is doing a network restore from bsd.rd at all possible?

2006-10-21 Thread Michal Soltys

smith wrote:



If you successfully do this, can you post how you did it?



The "magic" is in bsd's ftp(1) -o flag, which makes it a bit similar beast 
to the wget. It can also pull the file using http or, since 4.0, https - 
check "AUTO-FETCHING FILES" section in the man, it's quite fexible piece of 
tool.


As for recovering / cloning using bsd.rd, you could simply do something like:

newfs /dev/rwd1e
mount -o async /dev/wd1e /mnt
cd /mnt
ftp -o - ftp://openbsd.example.com/partition.dump | restore rvf -
cd /
umount /mnt

One remark though - use or prepare larger /tmp before doing so, or you may 
irritate restore quite a bit, if you recover some larger filesystem.




Re: Is doing a network restore from bsd.rd at all possible?

2006-10-20 Thread smith
On Thu, 19 Oct 2006 12:35:28 -0400, Martin Gignac wrote
> On 10/19/06, Michal Soltys <[EMAIL PROTECTED]> wrote:
> 
> > You can pipe ftp's output to restore.
> 
> Hey man, great idea! I'll try it out.
> 
> Thanks!
> -Martin
> 
> -- 
> "Suburbia is where the developer bulldozes out the trees, then names
> the streets after them."
> 
>--Bill Vaughan

If you successfully do this, can you post how you did it?



Re: Is doing a network restore from bsd.rd at all possible?

2006-10-19 Thread Martin Gignac

On 10/19/06, Martin Gignac <[EMAIL PROTECTED]> wrote:


Hey man, great idea! I'll try it out.


Yup, tried a restore(8) via HTTP and it worked fine!

Thanks again for the tip.

-Martin

--
"Suburbia is where the developer bulldozes out the trees, then names
the streets after them."

  --Bill Vaughan



Re: Is doing a network restore from bsd.rd at all possible?

2006-10-19 Thread Martin Gignac

On 10/19/06, Bob Beck <[EMAIL PROTECTED]> wrote:


My typical way to do his is find my latest dump(s) on tape
or elsewhere - chuck them on an nfs server accesible to the machine
to be restored, boot from bsd.rd, mount the nfs location with the
dump files and proceed.


That's why I'd *like* to do, but I don't have 'mount_nfs' on my
bsd.rd. I'm guessing you are using a non-i386 bsd.rd, right?

The FAQ at http://www.openbsd.org/faq/faq4.html#InstMedia mentions
that "the OpenBSD/i386 platform does not support NFS installs", so I
guess a i386 cd40.iso image will not ne NFS-capable, and therefore NFS
is not an option for me.

Makes sense, right?

At least, as Michal suggested I could use FTP.

-Martin

--
"Suburbia is where the developer bulldozes out the trees, then names
the streets after them."

  --Bill Vaughan



Re: Is doing a network restore from bsd.rd at all possible?

2006-10-19 Thread Bob Beck
My typical way to do his is find my latest dump(s) on tape
or elsewhere - chuck them on an nfs server accesible to the machine
to be restored, boot from bsd.rd, mount the nfs location with the
dump files and proceed.

-Bob


* Michal Soltys <[EMAIL PROTECTED]> [2006-10-19 09:19]:
> >So my question is this: is doing a remote network restore using
> >'bsd.rd' at all possible (or even suggested/recommended) or are
> >directly attached devices (IDE/SCSI/USB drives & tapes drives) the
> >only supported restore(8) sources with 'bsd.rd'?
> 
> You can pipe ftp's output to restore.
> 

-- 
#!/usr/bin/perl
if ((not 0 && not 1) !=  (! 0 && ! 1)) {
   print "Larry and Tom must smoke some really primo stuff...\n"; 
}



Re: Is doing a network restore from bsd.rd at all possible?

2006-10-19 Thread Martin Gignac

On 10/19/06, Michal Soltys <[EMAIL PROTECTED]> wrote:


You can pipe ftp's output to restore.


Hey man, great idea! I'll try it out.

Thanks!
-Martin

--
"Suburbia is where the developer bulldozes out the trees, then names
the streets after them."

  --Bill Vaughan



Re: Is doing a network restore from bsd.rd at all possible?

2006-10-19 Thread Michal Soltys

So my question is this: is doing a remote network restore using
'bsd.rd' at all possible (or even suggested/recommended) or are
directly attached devices (IDE/SCSI/USB drives & tapes drives) the
only supported restore(8) sources with 'bsd.rd'?


You can pipe ftp's output to restore.