Koozali.org: home of the SME Server

AFFA - Relocating Backup Server

Offline Mirfster

  • *
  • 62
  • +0/-0
AFFA - Relocating Backup Server
« on: September 14, 2010, 09:35:47 AM »
Hi all,

I recently setup AFFA on a secondary server; configured it and performed the initial backup.  Everything works as it should including the e-mail notifications, since I enabled "chattyOnSuccess".  However, I have since relocated the server offsite and updated the job settings. 

The backups are still running without issues, however two things are different:
1) I was getting the WatchDog messages saying that the job did not run.  This I kind of corrected by deleting the file "/etc/cron.hourly/affa-watchdog-prodbox-10.20.1.75-reminder" and letting AFFA recreate the file.  This stopped the false error messages but, I was wondering why the reminder still shows the old IP address even though I updated the job and IP of the backup server?

2) I am no longer getting the "Success" e-mails.  I have the "chattyOnSuccess" set at 365 and the count is properly decreasing.  As well, checking the archives (affa --list-archives) shows that everything else is working fine.

Hopefully there is something silly I am overlooking.

Thanks for any help you all can provide.


Offline Mirfster

  • *
  • 62
  • +0/-0
Re: AFFA - Relocating Backup Server
« Reply #1 on: September 21, 2010, 09:09:33 PM »
What no takers?  :lol:

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: AFFA - Relocating Backup Server
« Reply #2 on: September 21, 2010, 09:56:56 PM »
Mirfster

Provide more specific details about your network setup etc where the backup server is located and also show the exact "error" messages. Also output of
db affa show jobname

Off the top of my head guess, did you fully reconfigure the backup server when you moved it offsite ?
« Last Edit: September 21, 2010, 10:00:22 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Mirfster

  • *
  • 62
  • +0/-0
Re: AFFA - Relocating Backup Server
« Reply #3 on: September 22, 2010, 03:23:04 PM »
Sorry for the late response.  The backup server was originally located in the LAN (using 10.20.1.75 IP Address) and was working fine.  After letting it "bake" for a couple days without issues, the system was relocated offsite.  Offsite network is running a 198.x.x.x range.

Had them do the following:
1) Change the IP Address of the Server to 192.168.1.5 (Also set the Subnet and Gateway).
2) Test to ensure Internet Connectivity (worked)
3) Updated the affa job to change the "remoteHostName" to the External IP Address of the Production Server.
4) Ran "affa --check-connection", which provided a successfull result
5) One the Production Server, I deleted the file "/etc/cron.hourly/affa-watchdog-prodbox-10.20.1.75-reminder" (so the file would be recreated by the Backup Server)

This morning, I received the message:

Quote
The backup job 'prodbox' scheduled on Mon Sep 20 22:30:09 2010 did not run.
Please check and fix your affa configuration on ddgbackup.ddgbackup.local (192.168.1.5).
A reminder message will be sent at 22:00 hours, if the error continues unchecked.

Remove the file /etc/cron.hourly/affa-watchdog-prodbox-192.168.1.5-reminder to stop receiving reminder messages.

I will have the on-site person run some checks to see if the backup did actually run.  However, it would appear that it was able to communicate with the Production Server since it recreated the "reminder" file, which reflects the new IP Address.

Also, I will have them get me the output of "db affa show prodbox".

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: AFFA - Relocating Backup Server
« Reply #4 on: September 22, 2010, 03:37:58 PM »
Mirfster

Please read the Affa wiki article. You forgot to do
affa --make-cronjobs
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Mirfster

  • *
  • 62
  • +0/-0
Re: AFFA - Relocating Backup Server
« Reply #5 on: September 22, 2010, 04:24:10 PM »
Wasn't sure if I had to run that again since that was done previously when the job was first set up.  I will give it a whirl.

Thanks.

Offline brianr

  • *
  • 990
  • +2/-0
Re: AFFA - Relocating Backup Server
« Reply #6 on: September 28, 2010, 10:58:51 PM »
Also suggest you do

affa ---send-key <jobname>

As I suspect the ssh keys will be different if it is on a different Ip address.

I regularly do what you are doing - move an affa backup server between a remote and local location.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Mirfster

  • *
  • 62
  • +0/-0
Re: AFFA - Relocating Backup Server
« Reply #7 on: September 29, 2010, 01:17:55 AM »
Also suggest you do

affa ---send-key <jobname>

As I suspect the ssh keys will be different if it is on a different Ip address.

I regularly do what you are doing - move an affa backup server between a remote and local location.

Will have them do that.  So far everything else is working, just want the "chattyOnSuccess" e-mails to occur.

Once I get them to do that, I'll post back and let you all know if it works.

Thanks.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: AFFA - Relocating Backup Server
« Reply #8 on: September 29, 2010, 02:11:29 AM »
Mirfster

Quote
....just want the "chattyOnSuccess" e-mails to occur.

Did you reconfigure the actual SME backup server settings ie point the server at the local gateway for Internet access, and also set the ISP's smtp mail server details (if required).
Do otrher email messages arrive re the affa backups ?
Have you tested email from the backup server (eg webmail) to internal & external addresses ?
I'm assuming your affa backup server is a SME server.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.