LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2015, 06:53 AM   #1
rayalab
LQ Newbie
 
Registered: Jul 2015
Posts: 12

Rep: Reputation: Disabled
rsync excluding files eventhough the file pickedup


Hi,

I am trying to sync all files from one server to another server. This is continuous process daily.
Somehow I have few hidden folders in which there are few files too. I don't need these hidden folders and files which are inside. So I have to exclude them.
java creates rsync command for each n every file which are there in source server.

rsync -vrlt --exclude=".dav" --exclude=".dav/*" server1:/abc/.dav/a.txt .

This .dav is a hidden folder. I don't need any files under this directory. I have used above exclude patterns.But didn't work.

Please help me in this case how can I exclude file under hidden directory eventhough the file has been picked up.
 
Old 07-23-2015, 02:04 AM   #2
rayalab
LQ Newbie
 
Registered: Jul 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
please help me. it is very urgent

some one please check and help me.
I need to exclude files eventhough it picked up.
 
Old 07-23-2015, 02:21 AM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,413
Blog Entries: 6

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by rayalab View Post
Hi,

I am trying to sync all files from one server to another server. This is continuous process daily.
Somehow I have few hidden folders in which there are few files too. I don't need these hidden folders and files which are inside. So I have to exclude them.
java creates rsync command for each n every file which are there in source server.

rsync -vrlt --exclude=".dav" --exclude=".dav/*" server1:/abc/.dav/a.txt .

This .dav is a hidden folder. I don't need any files under this directory. I have used above exclude patterns.But didn't work.

Please help me in this case how can I exclude file under hidden directory eventhough the file has been picked up.
It is really not very clear what you are trying to do, or what you mean by "picked up".

What does java have to do with it? Does a java application generate the rsync commands? If so, what application and how does it fit into the rsync process, exactly?

You say that you don't want to copy any files under the .dav/ directory, yet your rsync source is exactly a file in that directory.

It does not actually sound like an rsync problem, but more like a command generation problem. Please try to explain more clearly how this is supposed to work overall, not just the rsync commands, and include actual examples if possible.
 
Old 07-24-2015, 04:18 AM   #4
rayalab
LQ Newbie
 
Registered: Jul 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
this requirement is on hold as of now, we are doing some more changes. Will come back once we are finalized.

Thanks.
 
  


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
[SOLVED] Rsync not excluding files wheel Linux - Software 4 10-18-2011 09:05 PM
need to zip all the files excluding todays file arumilli Linux - Newbie 12 06-29-2011 04:15 AM
rsync excluding a single file/folder guna_pmk Linux - Software 1 04-05-2011 05:59 AM
rsync question - Excluding files with a certain character in the filename EmigrantChris Linux - General 2 04-21-2009 10:07 PM
rsync excluding hidden files? gonzojd7 Linux - Newbie 2 09-05-2008 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration