Update Backup.php

This commit is contained in:
Bozhidar 2024-05-02 16:53:53 +03:00
parent f8f0460bb9
commit e1d7d50a1f

View file

@ -256,6 +256,7 @@ class Backup extends Model
}
}
// With find, we can search for all files,directories (including hidden) in the current directory and zip them
$shellFileContent .= 'cd '.$backupTempPath .' && find . -exec zip -r '.$backupFilePath.' {} \;'. PHP_EOL;
$shellFileContent .= 'rm -rf '.$backupTempPath.PHP_EOL;