mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
Still some work todo, integrate configuration into new interface and iterate through available options in remote_backup.php. The current state is functionally unchanged, only some minor cleanups in the previous backup code.
13 lines
299 B
PHP
Executable File
13 lines
299 B
PHP
Executable File
#!/usr/local/bin/php
|
|
<?php
|
|
require_once('script/load_phalcon.php');
|
|
|
|
use OPNsense\Backup\BackupFactory;
|
|
|
|
$backupFact = new BackupFactory();
|
|
foreach ($backupFact->listProviders() as $classname => $provider) {
|
|
if ($provider['handle']->isEnabled()) {
|
|
$provider['handle']->backup();
|
|
}
|
|
}
|