Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: andreslucena on December 17, 2008, 06:08:31 PM

Title: chattyOnSuccess in AFFA
Post by: andreslucena on December 17, 2008, 06:08:31 PM
Hello,

I've been using AFFA for a few weeks and it seems pretty nice: fast and easy to configure, and it backups all very well. The only thing is that I never used the "rise" option (and I hope I'll never need to use it  :grin:) but if it's the half good that I've read, I'm done.

One thing that always disturbs me is the non-feedback from AFFA. By default it's chattyOnSuccess=0, but when I change it to =1 or =99 I still don't get emails. The weird thing is that when I use the --mailtest option I do receive the test email.

Does anybody know what might be??

Thank you,
Andres
Title: Re: chattyOnSuccess in AFFA
Post by: cactus on December 17, 2008, 11:29:29 PM
The only thing is that I never used the "rise" option (and I hope I'll never need to use it
For a proper backup routine you should also test restore, otherwise it might bite you in the back when you might really need it. A lot of people oversee that when testing a backup routine, successful restore is also a part that should be tested and verified.
Title: Re: chattyOnSuccess in AFFA
Post by: m on December 18, 2008, 05:34:35 PM
The only thing is that I never used the "rise" option
You should and it's easy. Disconnect the Affa server from your net. Do a --rise, check everything, do a --undo-rise and reconnect it to your net.

One thing that always disturbs me is the non-feedback from AFFA. By default it's chattyOnSuccess=0, but when I change it to =1 or =99 I still don't get emails. The weird thing is that when I use the --mailtest option I do receive the test email.

Affa is designed to operate silently. Just imagine having 50 or more jobs configured...

chattyOnSuccess works for me. I just ran a test with Affa 1.0.0-3 for a job named "crm"
Code: [Select]
[root@backup2 ~]# db affa setprop crm chattyOnSuccess 99
[root@backup2 ~]# db affa getprop crm chattyOnSuccess
99
[root@backup2 ~]# affa --run crm
[root@backup2 ~]# db affa getprop crm chattyOnSuccess
98

I received the success mail as expected.

Title: Re: chattyOnSuccess in AFFA
Post by: andreslucena on December 19, 2008, 09:48:20 AM
So, what I've done is:

# db affa getprop fenix chattyOnSuccess
95
# db affa setprop fenix chattyOnSuccess 99
# db affa getprop fenix chattyOnSuccess
99
# affa --run fenix
# db affa getprop fenix chattyOnSuccess
98

And I don't receive any email

Mailtest works fine:

# affa --mailtest fenix
Testmail sent to my@email.com
Watchdog testmail from IPADDRESS sent to my@email.com

The log (/var/log/affa/fenix.log) says that email has sent:

Fri Dec 19 09:22:41[19205]: Affa 1.0.0-3: Starting job fenix scheduled (IPADDRESS)
Fri Dec 19 09:22:41[19205]: Description: Backup de Fenix
Fri Dec 19 09:22:41[19205]: Checking SSH connection to IPADDRESS
Fri Dec 19 09:22:43[19205]: Installing watchdog on IPADDRESS
Fri Dec 19 09:22:47[19205]: signaling pre-backup event on IPADDRESS
Fri Dec 19 09:22:50[19205]: Running rsync...
Fri Dec 19 09:26:35[19205]: signaling post-backup event on IPADDRESS
Fri Dec 19 09:26:39[19205]: writing /var/affa/fenix/scheduled.running/.AFFA-REPORT
Fri Dec 19 09:26:39[19205]: Shifting backup archives...
Fri Dec 19 09:26:39[19205]: Deleting /var/affa/fenix/.TRASH
Fri Dec 19 09:28:27[19205]: Checking disk space.
Fri Dec 19 09:28:29[19205]: Email sent to my@email.com
Fri Dec 19 09:28:29[19205]: Completed job fenix scheduled (IPADDRESS)
Fri Dec 19 09:28:29[19205]: Exiting.

It says that AFFA has sent the email, but it didn't sent me anything, only the mailtest from before.
Title: Re: chattyOnSuccess in AFFA
Post by: m on December 19, 2008, 09:59:19 AM
What shows the qmail log?
Has the receiving mailbox spam filters active?