Jump to content
thirty bees forum

Database export - import issue


Pedalman

Recommended Posts

I want to exclude tables from database export (through backoffice) in order to get a smaller export sql file. For example I want exclude:

       _DB_PREFIX_.'ps_site_defender',
            _DB_PREFIX_.'ps_smarty_cache'

I tried the following in PrestaShopBackup.php but all following tables are being skipped... not I want:

public function add()
    {
        if (!$this->psBackupAll) {
            $ignoreInsertTable = [
                _DB_PREFIX_.'connections',
                _DB_PREFIX_.'connections_page',
                _DB_PREFIX_.'connections_source',
                _DB_PREFIX_.'guest',
                _DB_PREFIX_.'statssearch',
            ];
        } else {
            $ignoreInsertTable = [];
        }
        // pedalman
        $ignoreInsertTable = [
            _DB_PREFIX_.'ps_site_defender',
            _DB_PREFIX_.'ps_smarty_cache',
        ]; 

 

Edited by Pedalman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...