On Thu, 27 Nov 2008 10:50:47 +0530, Kaushal Shriyan wrote:

> I have a directory logfiles and inside it it has lots of sub
> directories. Inside it there are lots of .gz, .txt and .sql files
> I want only .sql files to be rsynced to the destination host
> 
> is there a way to achieve it using rsync utility

Create a .rsync-filter file in that directory containing either

+ *.sql
- *

or

- *.gz
- *.txt

and call rsync with the -F option. See the man page for more details.


-- 
Neil Bothwick

I like you. You remind me of when I was young and stupid.

Attachment: signature.asc
Description: PGP signature

Reply via email to