Hello all, I would like to know for each module i define in my rsyncd.conf (on my backup server side) if it is possible to have the transfer logging (host, ip address, ...) in my mysql server or in a separate log file for each module. I try to add log file = on each module, it was not working. I also try to modify logging format with log format in my rsyncd.conf and nothing work ! the logging is always the same as default. For information, i'm running rsync with xinetd Best regards Philippe, EMail / philippe@beau.nom.fr
--- Philippe BEAU <philippe@beau.nom.fr> wrote:> Hello all, > > I would like to know for each module i define in my rsyncd.conf (on my > backup server side) if it is possible to have the transfer logging > (host, > ip address, ...) in my mysql server or in a separate log file for each > module. > > I try to add log file = on each module, it was not working. I also try > to > modify logging format with log format in my rsyncd.conf and nothing work > ! > the logging is always the same as default.Philippe, You can specify a log file for each user (and each module if there is only one module per user) if rsync is launched as a "single-transfer" daemon. This implies that your rsync receiving machine is not running a standalone daemon. When the user contacts the server the user's home directory will be searched for a config file (~philippe/rsyncd.conf). Then you specify the log file in the global section. -- Peter __________________________________________________________ Find your next car at http://autos.yahoo.ca
On Fri, Feb 24, 2006 at 06:26:09AM +0100, Philippe BEAU wrote:> I try to add log file = on each module, it was not working.There is only support for a single log file for the entire daemon or a single syslog facility. (You'll note that these options are listed under global options, not module options.)> I also try to modify logging format with log format in my rsyncd.conf > and nothing work !It works fine for me. Keep in mind that this setting only affects the transfer log lines, not all log lines. ..wayne..
--- Philippe BEAU <philippe at beau.nom.fr> wrote:> I would like to know for each module i define in my rsyncd.conf (on my > backup server side) if it is possible to have the transfer logging (host, > ip address, ...) in my mysql server or in a separate log file for each > module.You can also use my patch for ODBC database logging. It works quite nicely under Linux with unixODBC, and I've been using it for almost 2 years now. I use postgresql to log to, but I wrote it to work with MySQL as well. It should work with other Unix like operating systems as long as you're using and configure unixODBC (which is the ODBC manager the operating system uses). I don't know if it will work with other ODBC managers. The patch is in the patches directory.