diff --git a/src/etc/inc/plugins.inc.d/core.inc b/src/etc/inc/plugins.inc.d/core.inc index 4a09966f2..e717c8e6c 100644 --- a/src/etc/inc/plugins.inc.d/core.inc +++ b/src/etc/inc/plugins.inc.d/core.inc @@ -201,7 +201,12 @@ function core_cron() } } - $jobs[]['autocron'] = array('configctl system remote backup', 0, 1); + foreach ((new OPNsense\Backup\BackupFactory())->listProviders() as $classname => $provider) { + if ($provider['handle']->isEnabled()) { + $jobs[]['autocron'] = array('configctl system remote backup', 0, 1); + break; + } + } return $jobs; }