LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-18-2006, 04:50 AM   #1
Eazy-Snatch
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
Valio
 
Old 09-18-2006, 05:03 AM   #2
zeitounator
Member
 
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
Code:
rsync --exclude=".rsrc" ...
 
Old 09-18-2006, 05:03 AM   #3
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 30
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
 
Old 09-18-2006, 06:45 AM   #4
Eazy-Snatch
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
 
  


Reply


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 07:15 AM
What files to exclude when using rsync TongueTied Linux - General 2 07-20-2006 08:39 PM
RSYNC and dot files Buto Linux - General 1 09-22-2005 02:39 PM
rsync skipping files s_siouris Linux - Software 4 04-06-2005 11:00 AM
copy direcotry but ignore some files gsbarry Linux - General 3 02-22-2003 06:15 AM


All times are GMT -5. The time now is 06:41 AM.

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