Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-18-2006, 05:50 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 12

Rep: Reputation: 0
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
Old 09-18-2006, 06:03 AM   #2
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
I suggest your read the man page again looking for the word "exclude". Here is the idea
rsync --exclude=".rsrc" ...
Old 09-18-2006, 06:03 AM   #3
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
These two command line options should help out:
--exclude=PATTERN exclude files matching PATTERN
--exclude-from=FILE exclude patterns listed in FILE
The full man page:
Old 09-18-2006, 07:45 AM   #4
LQ Newbie
Registered: Jan 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks very mutch this help me.
Everything is OK now.
Sorry for stupid question


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync duplication files TheBrick Linux - General 2 08-03-2006 08:15 AM
What files to exclude when using rsync TongueTied Linux - General 2 07-20-2006 09:39 PM
RSYNC and dot files Buto Linux - General 1 09-22-2005 03:39 PM
rsync skipping files s_siouris Linux - Software 4 04-06-2005 12:00 PM
copy direcotry but ignore some files gsbarry Linux - General 3 02-22-2003 07:15 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration