thx for your reply,i made my question clear now,
dir infomation:
/var/www/html/mydir
/var/www/html/mydir/(file1,file2)
/var/www/html/mydir/dir1
/var/www/html/mydir/dir1/(file1,file2...fileN)
/var/www/html/mydir/dir2
/var/www/html/mydir/dir2/(file1,file2...fileN)
/var/www/html/mydir/dir3/
/var/www/html/mydir/dir3/(file1,file2...fileN)
/var/www/html/mydir/dir4/
/var/www/html/mydir/dir4/(1.html,2.html)
rsync configuration file /etc/rsyncd.conf content:
and /var/www/html/mydir owner:testuser
-------------------------------------
[rsy_file_and_dir]
comment= rsync some files and some dir
path=/var/www/html/mydir
read only= no
include= file1 file2/dir1/*** /dir2/*** /dir3/*** /dir4/1.html /dir4/2.html
exclude=*
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/
finally,,,,
these two files /var/www/html/mydir/dir4/(1.html,2.html) cant rysc to local_linux....
!!...confuese...!!
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 02:25 AM.
|