include & exclude dosn't work...

Dennis Chelukanov dennis_ch at ua.fm
Sun Oct 26 07:09:23 EST 2003


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 at ua.fm




More information about the rsync mailing list