core/src/opnsense/scripts/remote_backup.php
Ad Schellevis 2eb5ac913a move google drive backup to new framework for https://github.com/opnsense/core/pull/2251
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.
2018-03-20 20:58:02 +01:00

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();
}
}