Hello rsync,
I run Rsync as standalone server (--daemon). Here is my rsync.conf
file
use chroot = yes
max connections = 10
#syslog facility = local5
log = /var/log/rsyncd.log
[mp3files]
path = /home/guitar
comment = directory
read only = yes
list = no
secrets file = /etc/rsyncd.secrets
auth users = gate1
# hosts allow # hosts deny gid = guitar
timeout = 600
dont compress = *.mp3
exclude *
include *.mp3
Then i run rsync :
/etc > rsync rsync://gate1@localhost/mp3files/test/
Password:
drwxr-xr-x 512 2003/09/13 02:24:46 .
-rw-r--r-- 771 2003/09/13 02:24:46 .cshrc
-rw-r--r-- 255 2003/09/13 02:24:46 .login
-rw-r--r-- 165 2003/09/13 02:24:46 .login_conf
-rw------- 371 2003/09/13 02:24:46 .mail_aliases
-rw-r--r-- 331 2003/09/13 02:24:46 .mailrc
-rw-r--r-- 801 2003/09/13 02:24:46 .profile
-rw------- 276 2003/09/13 02:24:46 .rhosts
-rw-r--r-- 852 2003/09/13 02:24:46 .shrc
drwxr-xr-x 512 2003/09/13 02:24:46 cgi-bin
-rw-r--r-- 319 2003/09/13 02:24:46 newhost
drwxr-xr-x 512 2003/09/13 02:24:46 www
And as you see rsync lists evrything, not only *.mp3 files. I can
download any of this files too.
How to allow to download only *.mp3 files ?
--
Best regards,
Dennis mailto:dennis_ch@ua.fm
On Sun, Oct 26, 2003 at 12:09:23AM +0400, Dennis Chelukanov wrote:> Hello rsync, > > I run Rsync as standalone server (--daemon). Here is my rsync.conf > file >[snip]> exclude * > include *.mp3 > > Then i run rsync : > > /etc > rsync rsync://gate1@localhost/mp3files/test/ > Password: > drwxr-xr-x 512 2003/09/13 02:24:46 . > -rw-r--r-- 771 2003/09/13 02:24:46 .cshrc > -rw-r--r-- 255 2003/09/13 02:24:46 .login[snip]> > And as you see rsync lists evrything, not only *.mp3 files. I can > download any of this files too. > > How to allow to download only *.mp3 files ?The whole deamon (in|ex)clude[_from] functionality has been reworked. Upgrade to CVS and try again. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt