Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


Search this Thread
Old 07-21-2010, 10:15 PM   #1
Registered: Mar 2008
Posts: 52

Rep: Reputation: 15
rsync can not rsync files with include filter...

use rsync to cp such files and dirs under /var/www/html/mydir directory
but these two files (/dir4/1.html /dir4/2.html) cant rsync to dest mechine.I still dont know why,,give me a hint?thx

rsync configure file,below...

comment= rsync some files and some dir
read only= no
include= file1 file2/dir1/*** /dir2/*** /dir3/*** /dir4/1.html /dir4/2.html
auth users=testuser
Old 07-22-2010, 04:52 PM   #2
Registered: Jun 2008
Distribution: Fedora, RHEL, Ubuntu
Posts: 33

Rep: Reputation: 15
I'm not sure if this is helpful or not. I had a similar problem. What I didn't realize was that the location of the include or exclude files is relative to where you run rsync from.
I wanted to rsync a whole system while excluding /tmp /home /dev /proc etc
My exclude file looked like this:

and I ran the rsync command out of /

Old 07-23-2010, 03:10 AM   #3
Registered: Mar 2008
Posts: 52

Original Poster
Rep: Reputation: 15
thx for your reply,i made my question clear now,

dir infomation:

rsync configuration file /etc/rsyncd.conf content:
and /var/www/html/mydir owner:testuser
comment= rsync some files and some dir
read only= no
include= file1 file2/dir1/*** /dir2/*** /dir3/*** /dir4/1.html /dir4/2.html
auth users=testuser

at other linux machine(local_linux),use following command to rysc ...
# rsync -avzp testuser@remote_ip::rsy_file_and_dir /somewhere/somedir/

these two files /var/www/html/mydir/dir4/(1.html,2.html) cant rysc to local_linux....

something wrong with /etc/rsyncd.conf ? but i still consist something wrong with exclude or include filter

Last edited by xiutuo; 07-23-2010 at 03:25 AM.


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 exclude (or include) issue eyeprotocol Linux - General 1 02-10-2010 12:08 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 05:08 AM
Help with rsync filter file Meson Linux - General 1 09-29-2008 07:59 PM
rsync - How to Include Hidden (.something) Files and Directories? edwin11 Linux - Software 4 11-29-2006 08:47 AM
RSYNC and include?? JediKnight2 Linux - Software 0 02-04-2005 12:52 PM

All times are GMT -5. The time now is 09:59 PM.

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