Add warning when trying to export to backend that we did not import metadata from yet.

This commit is contained in:
Abdulmhsen B. A. A
2022-07-07 17:52:04 +03:00
parent 4bdf16133f
commit 1e68217426

View File

@@ -193,6 +193,18 @@ class ExportCommand extends Command
continue;
}
if (null === ag($backend, 'import.lastSync', null)) {
$this->logger->warning(
'SYSTEM: Using export mode for [%(backend)]. server data is not yet imported. please run state:import',
[
'backend' => ag($backend, 'name'),
]
);
$export[ag($backends, 'name')] = $backend;
continue;
}
if ($minDate > $lastSync) {
$minDate = $lastSync;
}