mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
Resolve #1042
This commit is contained in:
parent
3db4827354
commit
c61f4a6918
|
@ -7,7 +7,7 @@ class BackupPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
AUTHOR = 'SnappyMail',
|
||||
URL = 'https://snappymail.eu/',
|
||||
VERSION = '1.0',
|
||||
RELEASE = '2023-11-27',
|
||||
RELEASE = '2023-12-10',
|
||||
REQUIRED = '2.30.0',
|
||||
CATEGORY = 'General',
|
||||
LICENSE = 'MIT',
|
||||
|
@ -47,6 +47,10 @@ class BackupPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
$oZip->addRecursive(APP_PRIVATE_DATA.'domains', 'domains');
|
||||
$oZip->addRecursive(APP_PRIVATE_DATA.'plugins', 'plugins');
|
||||
$oZip->addRecursive(APP_PRIVATE_DATA.'storage', 'storage');
|
||||
if (\is_readable(APP_PRIVATE_DATA.'AddressBook.sqlite')) {
|
||||
$oZip->addFile(APP_PRIVATE_DATA.'AddressBook.sqlite');
|
||||
}
|
||||
// $oZip->addFile(APP_DATA_FOLDER_PATH.'SALT.php');
|
||||
$oZip->close();
|
||||
|
||||
$data = \base64_encode(\file_get_contents($sZipFileName));
|
||||
|
|
Loading…
Reference in a new issue