From owner-freebsd-questions Sun Feb 18 13:48:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from prime.gushi.org (prime.gushi.org [208.23.118.172]) by hub.freebsd.org (Postfix) with ESMTP id BCCE737B401 for ; Sun, 18 Feb 2001 13:48:25 -0800 (PST) Received: from localhost (danm@localhost) by prime.gushi.org (8.9.3/8.9.3) with ESMTP id QAA47510; Sun, 18 Feb 2001 16:54:26 -0500 (EST) (envelope-from danm@prime.gushi.org) Date: Sun, 18 Feb 2001 16:54:25 -0500 (EST) From: "Dan Mahoney, System Admin" To: Nick Rogness Cc: cjclark@alum.mit.edu, questions@FreeBSD.ORG Subject: Re: dump and ssh In-Reply-To: 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, Nick Rogness wrote: > On Sun, 18 Feb 2001, Crist J. Clark wrote: > > > > > # 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)? > > Easier to follow...or maybe not. It is not needed but I was going > off of your post which used |restore... Okay, wait, so if... # ssh -luser remotehost "cat dump_file.dmp" | restore -[irRtx]f - (the original reply) would restore the dump on the (let's call it the backup server, a big thing with a raid 5 array and a DLT drive), what would be the syntax to restore on the local host (sadly, a cobalt raq3 running linux, several of these things, which have small hard drives, are backed up daily to the backup server). (Assume for a moment that I don't have the space to keep a full restore file on the disk _AND_ do the restore.) I've tried doing an NFS mount, but that's out of the question (I hate cobalts, they can only mount linux partitions). I just noticed something.... Would: ssh -luser remotehost "cat dump_file.dmp | restore -[irRtx]f -" actually be the command to do the restore on the backup server, and then the original reply is right? (note the location of quotes)? -Dan -- "There were some sensible, rational, and intelligent things to say. It's just that it was the last thing I expected to hear from the damn kangaroo." -Saravit, December 27, 1997 --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Web: http://prime.gushi.org finger danm@prime.gushi.org for pgp public key and tel# --------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message