On Wed 26 Nov 2008, Kaushal Shriyan wrote:
> 
> I do rsync -avz oldUnicelFiles hostB:/home/kaushal
> --exclude-from=exclude.txt
> but it rsynced  the excluded files too
> 
> my exclude.txt file contains
> ####################
> /home/kaushal/oldUnicelFiles/*.gz
> /home/kaushal/oldUnicelFiles/*.txt
> ####################

The excludes must be relative to the source;
the following exclude.txt should work:

/oldUnicelFiles/*.gz
/oldUnicelFiles/*.txt


You could leave out the directory if you want to exclude ALL *.gz and
*.txt files:

*.gz
*.txt


Paul
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to