-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 01 Dec 2003 10:04:11 -0800 Tom Nielsen <tom@neuro-logic.com> wrote:
I've been running rsync via kcron with the -v tag to get a list of what is copied, but I can't find the log. From what I understand, there should be a rsync.log under /var/log but it's not there.
Any thoughts. kcron is simply a GUI for you to specify the tasks you want to schedule.
In general, it sets up your crontab file. By default cron sends its output to mail. You can set the mailto variable in kcron to whomever should receive the email. Or, you can redirect the output of rsync to a log file. Normally, I don't run rsync directly from cron. I usually put a script around it. A short script might be: #!/bin/sh echo "rsync started: $(date)" >> mylog ## append to the mylog file rsync -auvz sourcedir targetdir >> mylog ## Append rsync data echo "Rsync completed with $?: $(date)" >> mylog - ------------- In this case, I date stamp when rsync starts, redirect the output to a logfile, then date stamp the completion along with the completion code of the last task. I would avoid sending rsync output to syslog. - -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/y46I+wA+1cUGHqkRAgqkAJ44We9IA+V4JR6VlbYxhojnkeZhPgCfR4RR 8HrDRC3JAVod7c9uXCcpjIg= =G6tI -----END PGP SIGNATURE-----