Hi Andi,

The script will run but not backup the database if it's not running locally.
That is what the check for the `hostname`.pid does. 

It will only backup the PF files that are present locally in that case.

I suggest you run that script on the database server itself.

The script does not send an email on it's own.
Cron may send one, depending on how it's configured.

Makes sense?


> On Sep 27, 2016, at 9:14 AM, Morris, Andi <[email protected]> wrote:
> 
> Hi,
> An update to this. It does seem to work well if the packetfence server is 
> also running the mariadb service. Mine wasn’t as there’s no need for it if 
> the database is on a remote server. Starting it meant that I could run the 
> maintenance job and see the backups being created, aswell as the optimisation 
> being run.
>  
> Would you like me to log this as an issue on github?
>  
> On a related note, I can see that issue 1415 
> https://github.com/inverse-inc/packetfence/issues/1415 
> <https://github.com/inverse-inc/packetfence/issues/1415> mentions an email 
> that is generated when this script is run. I’ve never had that email. Is it 
> something that should be sent to the user designated for PF alerts? If not, 
> is there scope for this to be added as an option?
>  
> Cheers,
> Andi
> 

Regards,
--
Louis Munro
[email protected] <mailto:[email protected]>  ::  www.inverse.ca 
<http://www.inverse.ca/> 
+1.514.447.4918 x125  :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and 
PacketFence (www.packetfence.org <http://www.packetfence.org/>)

------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to