LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   rsync ignore files (https://www.linuxquestions.org/questions/linux-networking-3/rsync-ignore-files-484569/)

Eazy-Snatch 09-18-2006 04:50 AM

rsync ignore files
 
Hello colleague

I have little problem with my rsync's.I make sync from our country to other and everything is working.When sync finish donwloading or uploading one php script send email to group of peoples that work is come and they can download it from local server.
Users are MAC machines.
Server is Linux Debian machine and I share with netatalk.BUT in other country use other software who make ".rsrc" folder.This software make "dot files" (.rsrc) with already downloaded files then RSYNC see this files and downloading it and send email.But work is ghost becouse is old.

I need to ignore this kind of files ".rsrc" I search for solution and can't find anything.
In rsync man pages don't see for that kind of option.

My idea is when the job come one script to delete all .rsrc files befour sending email but I just want to ask if someone have better idea.


Thanks for supporting
Valio

zeitounator 09-18-2006 05:03 AM

I suggest your read the man page again looking for the word "exclude". Here is the idea
Code:

rsync --exclude=".rsrc" ...

vls 09-18-2006 05:03 AM

These two command line options should help out:
Quote:

--exclude=PATTERN exclude files matching PATTERN
--exclude-from=FILE exclude patterns listed in FILE
The full man page:http://man.linuxquestions.org/?query...ction=0&type=2

Eazy-Snatch 09-18-2006 06:45 AM

Thanks very mutch this help me.
Everything is OK now.
Sorry for stupid question


All times are GMT -5. The time now is 11:15 AM.