From owner-freebsd-questions@FreeBSD.ORG Thu Aug 5 13:32:21 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 909A816A4CE for ; Thu, 5 Aug 2004 13:32:21 +0000 (GMT) Received: from pearl.ibctech.ca (dev.eagle.ca [209.167.58.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A627543D60 for ; Thu, 5 Aug 2004 13:32:20 +0000 (GMT) (envelope-from iaccounts@ibctech.ca) Received: (qmail 37175 invoked by uid 1002); 5 Aug 2004 13:32:32 -0000 Received: from iaccounts@ibctech.ca by pearl.ibctech.ca by uid 89 with qmail-scanner-1.22 (clamscan: 0.73. spamassassin: 2.63. Clear:RC:1(127.0.0.1):. Processed in 1.231447 secs); 05 Aug 2004 13:32:32 -0000 Received: from unknown (HELO webmail.ibctech.ca) (127.0.0.1) by localhost.ibctech.ca with SMTP; 5 Aug 2004 13:32:30 -0000 Received: from 209.167.16.15 (SquirrelMail authenticated user steve@ibctech.ca); by webmail.ibctech.ca with HTTP; Thu, 5 Aug 2004 09:32:31 -0400 (EDT) Message-ID: <2807.209.167.16.15.1091712751.squirrel@209.167.16.15> In-Reply-To: <20040805115127.GA64666@bps.jodocus.org> References: <5.2.0.9.0.20040805174307.00a0a970@127.0.0.1> <20040805115127.GA64666@bps.jodocus.org> Date: Thu, 5 Aug 2004 09:32:31 -0400 (EDT) From: "Steve Bertrand" To: "Joost Bekkers" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-questions@freebsd.org Subject: Re: Back-up on remote machine X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 13:32:21 -0000 > On Thu, Aug 05, 2004 at 05:58:24PM +0700, Roger Merritt wrote: >> One example I found on the WWW is: tar -czf - /some/file | \ >> ssh host.name tar -xzf - -C /destination. >> >> That's not quite what I want, because I don't see any need to untar >> everything at the far end, but I can't send a file without using >> some >> command to ssh. > > If all you need is somthing at the other end capturing the data try > > ... | ssh remotehost "cat - > myfile" Remember though, that the remote file will be a tarball itself. Here is the command I use frequently, to get exactly what you want...a tarball of a local file system on a remote machine: # tar -cvzf - /home/steve | ssh steve@server 'cat > tarball.tar.gz' Regards, Steve > > -- > greetz Joost > joost@jodocus.org > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >