From owner-freebsd-questions@FreeBSD.ORG Tue Nov 24 11:22:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B9E8106568F for ; Tue, 24 Nov 2009 11:22:22 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from dd12710.kasserver.com (dd12710.kasserver.com [85.13.134.233]) by mx1.freebsd.org (Postfix) with ESMTP id 4956A8FC19 for ; Tue, 24 Nov 2009 11:22:22 +0000 (UTC) Received: from current.Sisis.de (cazador.sisis.de [193.31.11.193]) by dd12710.kasserver.com (Postfix) with ESMTP id BDEB01835078B; Tue, 24 Nov 2009 12:22:20 +0100 (CET) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id nAOBMLEA003372; Tue, 24 Nov 2009 12:22:21 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 24 Nov 2009 12:22:21 +0100 From: Matthias Apitz To: n dhert Message-ID: <20091124112221.GA3315@current.Sisis.de> References: <8021a2660911240244j1a5c2abcu71866324ada0dc83@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8021a2660911240244j1a5c2abcu71866324ada0dc83@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) Cc: freebsd-questions@freebsd.org Subject: Re: restore -rf user@host:file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2009 11:22:22 -0000 El día Tuesday, November 24, 2009 a las 11:44:52AM +0100, n dhert escribió: > To use the restore command (dump/restore) with a dump file on a remote > machine, the man restore tells you can use the syntax restore -rf > user@host:file, this uses rcmd(3) > If from the target machine (on same subnet as remotemachine), > logged in as root, I enter > targetmachine# cd /home/testrestore > targetmachine# tar -rf root@ IP_of_remote_machine:/home/file.dmp Why you are talking here about tar(1) if you need restore(1M)? > I get > IP_of_remote_machine: Connection refused > login to IP_of_remote_machine as root failed > There needs some more setup for this in order to work, (hosts.equiv, > .rhosts or something ??). > How exactly ? > (I just need this for the restore, certainly not to be a permanent way of > transferring files) just use another normal user and not 'root'; you only need read access to the file on the remote server; > > I'm usingt for restore: # newfs /dev/daXXXXX # mount /dev/daXXXXX /mnt # cd /mnt # ssh guru@albatros cat dumpsRebelion-20080825/usr.dmp.gz | gzip -dc | restore -r -f - (my dumps are compressed there); HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu