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/**
------------------------------------------------------------------------
My script on the client:
#!/bin/sh
#
echo "`date` Beginning rsync of static files.\n"
rsync --stats --verbose --archive servername::static_files /raid/new_sync/
echo "`date` rsync of static files completed.\n"
# some code to stop my database will go here, then I'll
# use rsync on the excluded directories.
echo "`date` Beginning rsync of volatile files.\n"
rsync --stats --verbose --archive servername::db_log
/raid/new_sync/production/
rsync --stats --verbose --archive servername::2000_data
/raid/new_sync/2000/
echo "`date` rsync of volatile files completed.\n"
Thanks in advance for any help.
Gerald Gallagher
============================================================================
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.
============================================================================