version x.x - Seven Portals (tba)
+ Now including update instructions
+ + DB export only insipid tables and not the whole DB itself.
+ Fixed the search for words. See update instructions how to correct your data
version 2.3 - Guardian of Steel (2019-12-30)
TODO / Feature list
+ Export and import of your data
-+ DB backup on the tables used in insipid and not whole db
+ snapshots
+ bookmark js snippet
+ theme support
'skip-dump-date' => false,
'skip-definer' => false,
'where' => '',
+ 'include-views' => array(),
/* deprecated */
'disable-foreign-keys-check' => true
);
}
// Dump the same views as tables, mimic mysqldump behaviour
- $this->dumpSettings['include-views'] = $this->dumpSettings['include-tables'];
+ //$this->dumpSettings['include-views'] = $this->dumpSettings['include-tables'];
// Create a new compressManager to manage compressed output
$this->compressManager = CompressManagerFactory::create($this->dumpSettings['compress']);
require_once 'lib/Mysqldump.php';
$backupTmpFile = tempnam(sys_get_temp_dir(),'inspid');
- $dump = new Ifsnop\Mysqldump\Mysqldump('mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USERNAME, DB_PASSWORD);
+ // mysqldump was modifed to make this work
+ // include-views was not working while using include-tables
+ $dumpSettings = array(
+ 'include-tables' => array(
+ DB_PREFIX.'_category',
+ DB_PREFIX.'_categoryrelation',
+ DB_PREFIX.'_link',
+ DB_PREFIX.'_tag',
+ DB_PREFIX.'_tagrelation'
+ ),
+ 'include-views' => array(
+ DB_PREFIX.'_combined'
+ ),
+ 'default-character-set' => \Ifsnop\Mysqldump\Mysqldump::UTF8MB4
+ );
+ $dump = new Ifsnop\Mysqldump\Mysqldump(
+ 'mysql:host='.DB_HOST.';dbname='.DB_NAME,
+ DB_USERNAME,
+ DB_PASSWORD,
+ $dumpSettings
+ );
+
+
$dump->start($backupTmpFile);
header('Content-Type: application/octet-stream');