This is still not working - the directories (and their files and
subdirectories) that are supposed to be excluded are still being copied. 

Has anyone out there successfully set-up rsync to copy a directory structure
while excluding some subdirectories and their nested sub-subdirectories? 

Gerald Gallagher


                -----Original Message-----
                From:   Dave Dykstra [mailto:[EMAIL PROTECTED]]
                Sent:   Friday, September 08, 2000 11:34 AM
                To:     Gerald Gallagher
                Cc:     '[EMAIL PROTECTED]'
                Subject:        Re: rsync not excluding

                On Fri, Sep 08, 2000 at 11:20:07AM -0400, Gerald Gallagher
wrote:
                > Hello - I'm using rsync to back up a rather large
directory tree, but I need
                > to exclude some directories, including all files and
subdirectories
                > contained within. I can't seem to get this to work. I'm
using rsync in
                > daemon mode. Here are my config files:
                > 
                >
---------------------------------------------------------------------
                > /etc/rsyncd.conf :
                > 
                > log file = /export/home/rsyncd.log
                > pid file = /var/run/rsyncd.pid
                > uid = root
                > gid = root
                > read only = yes
                > list = yes
                > hosts allow = 123.456.789.123  
                > 
                > [static_files]
                >    path = /raid/database/
                >    comment = static files & directories for daily syncing.
                >    exclude from = /etc/rsync_exclude
                > 
                > [db_log]
                >    comment = Volatile database files.
                >    path = /raid/database/production/db_log/
                > 
                > [2000_data]
                >    comment = Volatile database files.
                >    path = /raid/database/2000/data/
                > 
                >
-------------------------------------------------------------------------
                > /etc/rsync_exclude :
                > 
                > /raid/database/production/db_log/**
                > /raid/database/2000/data/** 


                The pathnames that the exclude algorithm has to work with
will not be the
                full path but instead the logical path based on the module
name.  Try
                    /static_files/production/db_log/**
                    /static_files/2000/data/** 

                I'm pretty sure that will do it.

                - Dave Dykstra


============================================================================
This message is intended only for the use of the Addressee(s) and may
contain information that is PRIVILEGED and CONFIDENTIAL. If you are not
the intended recipient, dissemination of this communication is prohibited.
If you have received this communication in error, please erase all copies
of the message and its attachments and notify [EMAIL PROTECTED]
immediately.
============================================================================


Reply via email to