LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-19-2018, 06:33 PM   #1
fthynne
LQ Newbie
 
Registered: Apr 2010
Posts: 9

Rep: Reputation: 1
rsync include/exclude difficulty


I am struggling to find the correct inclusion, exclusion or filter options to cope with the following cases:

Copying a directory with many subdirectories from one host to another,
excluding a top level subdirectory .ignore, and including all files except those named *.xls

and

copying the same directory and subdirectories,
excluding the same top level subdirectory .ignore and including only the files named *.xls

The purpose of this strange arrangement is to include checksum comparison only for files named *.xls without the huge overhead of checksum testing all the other files. This is to overcome an application error in which the contents of a few .xls files have been changed in the source directory between successive rsync runs without changing the last-modified timestamp.

So far I have not managed to separate the treatment of *.xls files from all the others. Either all the files or none are copied.
 
Old 06-20-2018, 09:11 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
fthynne, please start a new thread to request help with your problem rather than hang a completely unrelated question on a 4-year-old thread.

I will give you one hint:
Code:
man rsync
 
Old 06-20-2018, 09:32 AM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by scasey View Post
fthynne, please start a new thread to request help with your problem rather than hang a completely unrelated question on a 4-year-old thread.

I will give you one hint:
Code:
man rsync
14 years old

Reported for necroposting, man question, homework, human google

jlinkels

Last edited by jlinkels; 06-20-2018 at 09:34 AM.
 
Old 06-20-2018, 10:32 AM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
LOL. I got very bad at math once I learned how to make computers do it for me!
 
Old 06-20-2018, 10:59 AM   #5
fthynne
LQ Newbie
 
Registered: Apr 2010
Posts: 9

Original Poster
Rep: Reputation: 1
Please ignore my post to this thread

With apologies. I could not see how to start a new thread (I see now that I was trying from the wrong context) and this was the only one I discovered with relevant postings. I can now see that there are other threads in General and Networking that might help me.
 
  


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
rsync: exclude / include tux111 Linux - General 4 01-12-2014 01:54 AM
include and exclude in rsync xeon123 Linux - Newbie 4 05-26-2011 11:27 PM
Rsync: exclude and include filters? JosephS Linux - Software 1 02-03-2011 10:43 PM
Rsync exclude (or include) issue eyeprotocol Linux - General 1 02-09-2010 11:08 PM
rsync include/exclude problems toaster.waffle Linux - Software 4 11-19-2009 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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