rsync command exclude option
Michal Soltys
soltys at ziu.info
Wed Nov 26 13:35:55 GMT 2008
Kaushal Shriyan wrote:
> I want only .sql files to be rsynced to the destination host.
>
> when i do rsync -avz oldUnicelFiles hostB:/home/kaushal
> --include-from=include.txt
> it rsync all the files under oldUnicelFiles, I mean even .gz and .txt
> files too.
>
> ~/oldUnicelFiles $ ls
> 01-07-2008_LOG.txt.gz 01-08-2008_LOG.txt 02-09-2008_LOG.txt.sql
> ~/oldUnicelFiles $
>
> cat include.txt
> #####################
> /oldUnicelFiles/*.sql
> #####################
>
> am i missing something
>
Include is rsync's default action, if no explicit pattern that would
override it is specified.
More information about the rsync
mailing list