LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-02-2014, 03:11 AM   #1
Shemlik
LQ Newbie
 
Registered: Sep 2014
Posts: 4

Rep: Reputation: Disabled
Smile How to get rsync to ignore Directories but include files.


Hi All,

I am new to using rsync and need help with a particular scenario.

I have to sync a folder to multiple remote servers. The remote servers do not all have same folder structure. What I need is that rsync should copy files only if a directory is present. If the directory is NOT present, it should ignore and go on to the next remote server.

But I need this behaviour only for directories. Meaning if there is a new file in local directory which does NOT exist on remote, it should be created. So basically I need to use "--ignore-non-existing" but selectively for directories.

Any ideas how to get this done?

Thanks,
Shemlik
 
Old 09-02-2014, 07:12 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
I would ask it on the rsync mailing list (rsync@lists.samba.org)
 
  


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 fails to delete files only. Shall I rely in --ignore-errors? bucovaina78 Linux - General 1 12-13-2011 11:08 PM
rsync can not rsync files with include filter... xiutuo Linux - Server 2 07-23-2010 03:10 AM
rsync - How to Include Hidden (.something) Files and Directories? edwin11 Linux - Software 4 11-29-2006 08:47 AM
rsync ignore files Eazy-Snatch Linux - Networking 3 09-18-2006 07:45 AM
how to rsync ex/include select specific directories ? dtimms Linux - Software 1 01-11-2005 06:16 AM


All times are GMT -5. The time now is 02:07 PM.

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