Backup_Controller Class Reference
Backup controller.
More...
Public Member Functions |
| __construct ($backup_directory= '/var/www/html/backup') |
| index () |
| List the backup files.
|
| view ($file) |
| View the contents of a backup file.
|
| download ($file) |
| Download a backup file to the client.
|
| verify () |
| Proxy for checking if the currently running Naemon configuration is valid.
|
| backup () |
| Create a new backup file.
|
| restore ($file) |
| Restores the backup referred to as $file.
|
| delete ($file) |
| Remove an unwanted backup file.
|
| restart () |
| In order to reload the Monitor daemon with configuration from a backup, we need to restart it from within the GUI and report back how it went.
|
Data Fields |
const | BACKUP_EXTENSION = '.tar.gz' |
| Extension for backup files.
|
Detailed Description
Backup controller.
op5, and the op5 logo are trademarks, servicemarks, registered servicemarks or registered trademarks of op5 AB. All other trademarks, servicemarks, registered trademarks, and registered servicemarks mentioned herein may be the property of their respective owner(s). The information contained herein is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
Constructor & Destructor Documentation
Backup_Controller::__construct |
( |
$ |
backup_directory = '/var/www/html/backup' |
) |
|
- Parameters:
-
| $backup_directory | string, defaults to the value Monitor uses in production |
Member Function Documentation
Backup_Controller::delete |
( |
$ |
file |
) |
|
Remove an unwanted backup file.
- Parameters:
-
Backup_Controller::download |
( |
$ |
file |
) |
|
Download a backup file to the client.
- Parameters:
-
Backup_Controller::restore |
( |
$ |
file |
) |
|
Restores the backup referred to as $file.
- Parameters:
-
Backup_Controller::verify |
( |
|
) |
|
Proxy for checking if the currently running Naemon configuration is valid.
Not sure why we do this, nor why we do it here.
Backup_Controller::view |
( |
$ |
file |
) |
|
View the contents of a backup file.
- Parameters:
-
The documentation for this class was generated from the following file: