From owner-freebsd-questions Sun Feb 18 0:39:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 677D837B503 for ; Sun, 18 Feb 2001 00:39:26 -0800 (PST) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f1I93FH09277; Sun, 18 Feb 2001 03:03:15 -0600 (CST) (envelope-from nick@rogness.net) Date: Sun, 18 Feb 2001 03:03:15 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: cjclark@alum.mit.edu Cc: "Dan Mahoney, System Admin" , questions@FreeBSD.ORG Subject: Re: dump and ssh In-Reply-To: <20010218001714.E62368@rfx-216-196-73-168.users.reflex> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 or # ssh remotehost 'dump 0af - / ' |cat - > local_dump_file or you could just use scp. Nick Rogness - Keep on routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message