Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2001 01:04:36 -0800
From:      "Crist J. Clark" <cjclark@reflexnet.net>
To:        Nick Rogness <nick@rogness.net>
Cc:        "Dan Mahoney, System Admin" <danm@prime.gushi.org>, questions@FreeBSD.ORG
Subject:   Re: dump and ssh
Message-ID:  <20010218010436.H62368@rfx-216-196-73-168.users.reflex>
In-Reply-To: <Pine.BSF.4.21.0102180259120.90407-100000@cody.jharris.com>; from nick@rogness.net on Sun, Feb 18, 2001 at 03:03:15AM -0600
References:  <20010218001714.E62368@rfx-216-196-73-168.users.reflex> <Pine.BSF.4.21.0102180259120.90407-100000@cody.jharris.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 18, 2001 at 03:03:15AM -0600, Nick Rogness wrote:
> On Sun, 18 Feb 2001, Crist J. Clark wrote:
> 
> > On Fri, Feb 16, 2001 at 03:03:18AM -0500, Dan Mahoney, System Admin wrote:
> > > 
> > > My original plan had been to nfs mount the raid partition in the case of a
> > > need to restore, but for some reason the linux can't nfs mount the freebsd
> > > system (I think the kernel version is too old).
> > > 
> > > So then, my question becomes, what would be the syntax to pull a file from
> > > a remote host via ssh, using restore(8)?
> > 
> >   # ssh -luser remotehost "cat dump_file.dmp" | restore -[irRtx]f -
> 
> 	That will actually restore your dump on the machine you are
> 	restoring from.  If you just want to grap the already dumped file
> 	and not restore:
> 
>       # ssh remotehost 'cat dump_file' | cat - > local_dump_file
                                         ^^^^^^^
Why the gratuitous cat(1)?

        # ssh remotehost 'cat dump_file' > local_dump_file

 
> 		or
> 
>       # ssh remotehost 'dump 0af - / ' |cat - > local_dump_file
                                         ^^^^^^
        # ssh remotehost 'dump 0af - / ' > local_dump_file

The original poster was already piping dumps through SSH.
-- 
Crist J. Clark                           cjclark@alum.mit.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010218010436.H62368>