From owner-freebsd-questions Sun Feb 18 1: 4:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 9600837B401 for ; Sun, 18 Feb 2001 01:04:41 -0800 (PST) Received: from rfx-216-196-73-168.users.reflexcom.com ([216.196.73.168]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 18 Feb 2001 01:02:46 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.1/8.11.1) id f1I94bN50476; Sun, 18 Feb 2001 01:04:37 -0800 (PST) (envelope-from cjc) Date: Sun, 18 Feb 2001 01:04:36 -0800 From: "Crist J. Clark" To: Nick Rogness Cc: "Dan Mahoney, System Admin" , questions@FreeBSD.ORG Subject: Re: dump and ssh Message-ID: <20010218010436.H62368@rfx-216-196-73-168.users.reflex> Reply-To: cjclark@alum.mit.edu References: <20010218001714.E62368@rfx-216-196-73-168.users.reflex> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from nick@rogness.net on Sun, Feb 18, 2001 at 03:03:15AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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