From owner-freebsd-questions Tue Nov 30 12:31:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id 4EF7114D80 for ; Tue, 30 Nov 1999 12:31:23 -0800 (PST) (envelope-from daemon@bigeye.rhein-neckar.de) Received: from bigeye.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id VAA23539 for freebsd-questions@freebsd.org; Tue, 30 Nov 1999 21:31:15 +0100 (CET) (envelope-from daemon@bigeye.rhein-neckar.de) Received: (from daemon@localhost) by bigeye.rhein-neckar.de (8.9.3/8.9.3) id UAA39035 for freebsd-questions@freebsd.org; Tue, 30 Nov 1999 20:20:57 +0100 (CET) (envelope-from daemon) From: naddy@mips.rhein-neckar.de (Christian Weisgerber) Subject: Re: Backup remote host using SSH Date: 30 Nov 1999 20:20:56 +0100 Message-ID: <82182o$163f$1@bigeye.rhein-neckar.de> References: To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG daniel B wrote: > I am trying to backup a remote host 'frank' to a tape drive in a local > host 'homer' using SSh. > What syntax can I use for ssh to work with tar? > > On local host 'homer' > tar cvf /dev/nrst0 slogin frank://home/users does not work No, I guess it doesn't. I wonder how you came up with that command line. This might be what you want to do: # ssh frank 'tar cf - / | ssh homer dd bs=20b of=/dev/nrsa0' (Of course you don't want to get into the habit of creating tar archives with absolute paths. And in practice you'd install something like buffer to replace the dd above with a buffering program. And I recommend dump over tar for backups. Etc.) -- Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message