[CentOS] Remote archiving with tar over ssh

Fri Aug 12 17:14:00 UTC 2005
Paul Heinlein <heinlein at madboa.com>

On 8/12/05 9:52 AM, James B. Byrne wrote:
> I am trying to create a one line command that will:
> 
> 1. Find all files ending in .conf
> 2. tar these over ssh to a remote server.

How about

tar c $(find / -name \*.conf) | ssh host.com "gzip -c > file.tar.gz"

-- 
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com