Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 May 2003 10:27:53 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        ODHIAMBO Washington <wash@wananchi.com>, FBSD-Q <freebsd-questions@freebsd.org>
Subject:   Re: Reverse tar
Message-ID:  <20030502152753.GF94877@dan.emsphone.com>
In-Reply-To: <20030502151430.GB631@ns2.wananchi.com>
References:  <20030502151430.GB631@ns2.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 02), ODHIAMBO Washington said:
> 
> I would like to ssh to host B, cd some/path, tar some/path/directory/
> and output the tarball locally to TARBALL.tgz

Have you tried:

ssh hostb "cd some/path ; tar czf - directory" > TARBALL.tgz

?

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030502152753.GF94877>