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