LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync log (https://www.linuxquestions.org/questions/linux-software-2/rsync-log-475559/)

noir911 08-20-2006 04:19 AM

rsync log
 
I have got rsync V2.6.2 running on a few netware clients that sync file to a Suse Enterprise Server 9. In suse rsync is running as a daemon and on Netware I run a Perl script as a cron job. I want to get logs for individual servers. Currently all rsync logs are going to

/var/log/rsyncd.log and the /etc/rsyncd.conf file looks like this -

Code:

uid = myrsync
max connections = 0
read only = false
use chroot = false
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log

[Client1]
        path = /path/to/client1
        comment = client1
        read only = no
        use chroot = no
        timeout = 3600
        transfer logging = yes

[Client2]
        path = /path/to/client2
        comment = client2
        read only = no
        use chroot = no
        transfer logging = yes
        timeout = 3600

I want seperate log for client1 and client2 in /var/log/client1 and /var/log/client2 respectively.

david_ross 08-20-2006 04:31 AM

I think you would need to start multiple daemons for that. The alternative would be to grep through the main log file for the ip addresses of the remote machines and create more specific logs in each directory from that output.


All times are GMT -5. The time now is 09:00 AM.