_tpl_vars; $this->_smarty_include("location.tpl", array('last_location' => "Database Backup/Restore")); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> This section is used to backup the Database or restore the Database from .sql file. _tpl_vars['updates_msg']): ?>

_tpl_vars['updates_msg'] == 'backup_success'): ?>

  • The database was successfully backuped to the file '_tpl_vars['sqldump_file']; ?> '
  • _tpl_vars['updates_msg'] == 'file_not_found'): ?>
  • SQL file was not found
  • _tpl_vars['updates_msg']['type'] == 'upload_error'): ?>
  • File upload error [_tpl_vars['updates_msg']['code']; ?> ]
  • _smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean(); ?> _tpl_vars; $this->_smarty_include("dialog.tpl", array('title' => 'Message','content' => $this->_smarty_vars['capture']['dialog'],'extra' => "width=100%")); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?>

    Backup database

    If all images are stored in the database they will be included in SQL dump file.
    If any images or all images are stored in the file system you have to keep them in a separate archieve file, taking into consideration catalogs structure, where these images were created/exported from the database.

    Write SQL dump to file '_tpl_vars['sqldump_file']; ?> ' (Do not forget to delete it after downloading)

    Note: Database backup can take several minutes. Please be patient.



    Restore database

    WARNING! All existing tables will be overwritten. Restoring operation cannot be cancelled.
    Please make Backup copy before restoring the Database.

    To restore the images which are stored in the file system, you have to copy them from the archieve to X-cart catalog, taking into consideration catalogs structure.

    _tpl_vars['file_exists']): ?>
     -  Click here to restore SQL dump from file '_tpl_vars['sqldump_file']; ?> ' (Do not forget to delete this file after restoration procedure)

     
    WARNING! Maximum file size that can be uploaded: _tpl_vars['upload_max_filesize']; ?> b.

    Note: Database restoring can take several minutes. Please be patient.

    _smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean(); ?> _tpl_vars; $this->_smarty_include("dialog.tpl", array('title' => "Database Backup/Restore",'content' => $this->_smarty_vars['capture']['dialog'],'extra' => "width=100%")); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?>