NextDom\Managers\BackupManager::createBackupArchive
Creates an archive with all files that should be included in backup
We proceed in 4 steps: 1. creates a tar archive with plugins 2. append mysql backup to tar archive 3. append cache to to tar archive 4. compress tar archive This allows to untie path dependencies between source files while keeping the same directory structure in the tar archive (in order to keep backward compatibility with jeedom archives).
Signature
public function createBackupArchive(string
$outputPath,
string
$sqlPath,
string
$cachePath,
string
$logFile )
Parameters
$outputPath
— string- path of generated backup archive
$sqlPath
— string$cachePath
— string$logFile
— string