From owner-freebsd-questions Sun Feb 18 14:54: 4 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 5E32837B491 for ; Sun, 18 Feb 2001 14:54:01 -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 14:52:05 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.1/8.11.1) id f1IMro962184; Sun, 18 Feb 2001 14:53:50 -0800 (PST) (envelope-from cjc) Date: Sun, 18 Feb 2001 14:53:45 -0800 From: "Crist J. Clark" To: "Dan Mahoney, System Admin" Cc: questions@FreeBSD.ORG Subject: Re: dump and ssh Message-ID: <20010218145345.I62368@rfx-216-196-73-168.users.reflex> Reply-To: cjclark@alum.mit.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from danm@prime.gushi.org on Sun, Feb 18, 2001 at 04:54:25PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Feb 18, 2001 at 04:54:25PM -0500, Dan Mahoney, System Admin wrote: > 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 - This command will restore files stored in 'dump_file.dmp,' which is located on remotehost, onto the machine the command is executed on. I had a hard time parsing your description, but I think this is what you would want. remotehost would be the machine with the diskspace for the backups and the command is run on the machine needing to recover the files. But... > (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). You are mixing operating systems. How 'dump' and 'restore' work is OS dependent, and since the machine doing the dumps and restores is actually the Cobalt, I am not sure if freebsd-questions is the best place to ask. > 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)? That command would read the file 'dump_file.dmp' on remotehost and then restore the files _on remotehost._ -- 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