F20 - Unintended consequences of no default MTA - How best to fix

Suvayu Ali fatkasuvayu+linux at gmail.com
Thu Jan 2 02:48:59 UTC 2014


On Wed, Jan 01, 2014 at 08:19:50PM -0500, Matthew Miller wrote:
> On Wed, Jan 01, 2014 at 10:50:39PM +0100, Lars E. Pettersson wrote:
> > He states that his journal says "Dec 30 04:36:05 <hostname>
> > rsnapshot[8265]: /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsnapshot
> > daily: completed, but with some errors" but where to find that
> > error? In F19 these errors would have been forwarded to the mail
> > spool via /etc/aliases. Now it is lost.
> 
> rsnapshot should be patched to log those. In the meantime, though, the
> package could have a dpenedency on an MTA.

Actually rsnapshot has a separate logfile.  What you see there
traditionally goes to /var/log/messages (through syslog I think); and
the rsnapshot log (in my case /var/log/rsnapshot) looks like this:

[30/Dec/2013:04:30:02] /usr/bin/rsnapshot daily: started
[30/Dec/2013:04:30:02] echo 8237 > /var/run/rsnapshot.pid
[30/Dec/2013:04:30:02] /bin/rm -rf /backup/daily.6/
[30/Dec/2013:04:30:30] mv /backup/daily.5/ /backup/daily.6/
[30/Dec/2013:04:30:30] mv /backup/daily.4/ /backup/daily.5/
[30/Dec/2013:04:30:30] mv /backup/daily.3/ /backup/daily.4/
[30/Dec/2013:04:30:30] mv /backup/daily.2/ /backup/daily.3/
[30/Dec/2013:04:30:30] mv /backup/daily.1/ /backup/daily.2/
[30/Dec/2013:04:30:30] /bin/cp -al /backup/daily.0 /backup/daily.1
[30/Dec/2013:04:31:35] /usr/bin/rsync -aHFr --delete --numeric-ids --relative --delete-excluded --exclude-from=/etc/rsnapshot-exclude /home/user /backup/daily.0/local/
[30/Dec/2013:04:31:47] /usr/bin/rsync -aHFr --delete --numeric-ids --relative --delete-excluded --exclude-from=/etc/rsnapshot-exclude /etc /backup/daily.0/local/
[30/Dec/2013:04:31:50] /usr/bin/rsync -aHFr --delete --numeric-ids --relative --delete-excluded --exclude-from=/etc/rsnapshot-exclude --rsh=/usr/bin/ssh user at host:/home/user /backup/daily.0/host/
[30/Dec/2013:04:33:58] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsync returned 255 while processing user at host:/home/user/
[30/Dec/2013:04:33:58] /usr/bin/rsync -aHFr --delete --numeric-ids --relative --delete-excluded --exclude-from=/etc/rsnapshot-exclude --rsh=/usr/bin/ssh user at host:/etc /backup/daily.0/host/
[30/Dec/2013:04:36:05] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsync returned 255 while processing user at host:/etc/
[30/Dec/2013:04:36:05] touch /backup/daily.0/
[30/Dec/2013:04:36:05] rm -f /var/run/rsnapshot.pid
[30/Dec/2013:04:36:05] /usr/bin/rsnapshot daily: ERROR: /usr/bin/rsnapshot daily: completed, but with some errors

As you can see the two lines in /var/log/messages are just the first and
last lines of the more detailed version.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list