LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02: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, 06:12 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

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


Reply



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

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

All times are GMT -5. The time now is 01:11 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
Open Source Consulting | Domain Registration