Re: [BackupPC-users] Scripted reload of server configuration

2012-07-04 Thread Craig Barratt
On Mon, Jul 2, 2012 at 5:10 AM, Bryan Keadle (.net) bkea...@keadle.netwrote:

I see that the perl module,
 /usr/share/BackupPC/lib/BackupPC/CGI/ReloadServer.pm allows the daemon to
 become aware of the hosts file change.  How can I call this module from the
 SSI bash script I have that does the provisioning of the workstation?  Or,
 how else may I gracefully reload server configuration?  I'm aware of
 being able to send ' *kill -HUP {PID}* ', but I don't think that is
 graceful - wouldn't that effect currently running backups?


You can use BackupPC_serverMesg to send the message server reload to
reload the config and host files.

Craig
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Scripted reload of server configuration

2012-07-04 Thread Bryan Keadle (.net)
Excellent - thank you for your reply.  Just to be clear, the script I'm
running then I would just add:

BackupPC_serverMesg server reload




On Wed, Jul 4, 2012 at 6:43 AM, Craig Barratt 
cbarr...@users.sourceforge.net wrote:

 On Mon, Jul 2, 2012 at 5:10 AM, Bryan Keadle (.net) bkea...@keadle.netwrote:

 I see that the perl module,
 /usr/share/BackupPC/lib/BackupPC/CGI/ReloadServer.pm allows the daemon to
 become aware of the hosts file change.  How can I call this module from the
 SSI bash script I have that does the provisioning of the workstation?  Or,
 how else may I gracefully reload server configuration?  I'm aware of
 being able to send ' *kill -HUP {PID}* ', but I don't think that is
 graceful - wouldn't that effect currently running backups?


 You can use BackupPC_serverMesg to send the message server reload to
 reload the config and host files.

 Craig



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 BackupPC-users mailing list
 BackupPC-users@lists.sourceforge.net
 List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
 Wiki:http://backuppc.wiki.sourceforge.net
 Project: http://backuppc.sourceforge.net/


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Scripted reload of server configuration

2012-07-04 Thread Bryan Keadle (.net)
Got it working.  I added the following line to my script:

* sudo -u backuppc  /usr/share/BackupPC/bin/BackupPC_serverMesg server
reload*


On Wed, Jul 4, 2012 at 10:22 AM, Bryan Keadle (.net) bkea...@keadle.netwrote:

 Excellent - thank you for your reply.  Just to be clear, the script I'm
 running then I would just add:

 BackupPC_serverMesg server reload




 On Wed, Jul 4, 2012 at 6:43 AM, Craig Barratt 
 cbarr...@users.sourceforge.net wrote:

 On Mon, Jul 2, 2012 at 5:10 AM, Bryan Keadle (.net) 
 bkea...@keadle.netwrote:

 I see that the perl module,
 /usr/share/BackupPC/lib/BackupPC/CGI/ReloadServer.pm allows the daemon to
 become aware of the hosts file change.  How can I call this module from the
 SSI bash script I have that does the provisioning of the workstation?  Or,
 how else may I gracefully reload server configuration?  I'm aware of
 being able to send ' *kill -HUP {PID}* ', but I don't think that is
 graceful - wouldn't that effect currently running backups?


 You can use BackupPC_serverMesg to send the message server reload to
 reload the config and host files.

 Craig



 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 BackupPC-users mailing list
 BackupPC-users@lists.sourceforge.net
 List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
 Wiki:http://backuppc.wiki.sourceforge.net
 Project: http://backuppc.sourceforge.net/



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Scripted reload of server configuration

2012-07-02 Thread Bryan Keadle (.net)
I have developed a self provisioning ability whereby users go to a secure
page on BackupPC, enter their credentials, and their workstation they
logged in from automatically gets added to /etc/BackupPC/hosts.  However,
though it's seen and selectable via the BackupPC web page, trying to
initiate an immediate full backup produces Host unknown error, which I
have learned that the backuppc daemon is not aware of the change to the
hosts file.

I see that the perl module,
/usr/share/BackupPC/lib/BackupPC/CGI/ReloadServer.pm allows the daemon to
become aware of the hosts file change.  How can I call this module from the
SSI bash script I have that does the provisioning of the workstation?  Or,
how else may I gracefully reload server configuration?  I'm aware of
being able to send ' *kill -HUP {PID}* ', but I don't think that is
graceful - wouldn't that effect currently running backups?
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/