public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] rsync command
  @ 2008-11-27  9:10 99% ` Neil Bothwick
  0 siblings, 0 replies; 1+ results
From: Neil Bothwick @ 2008-11-27  9:10 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2008-11-27  5:20     [gentoo-user] rsync command Kaushal Shriyan
2008-11-27  9:10 99% ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox