Remote archiving with tar over ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx <> www.madboa.com

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux