Backup through Admin [FIX]

Various mods to change or add features.

Backup through Admin [FIX]

Postby Basti » 2009-08-04 03:02 pm

If you backup your Topsite Database throught the Topsite control panel, it dont backup completly. Its missing one table.

Please update the following file, so everything get backed up correctly and you dont recieve errors once you uploaded your backuped data

open sources/admin/backup_database.php
find:
Code: Select all
    else {
      $tables_to_backup = array(
        "{$CONF['sql_prefix']}_settings" => true,
        "{$CONF['sql_prefix']}_bad_words" => true,
        "{$CONF['sql_prefix']}_ban" => true,
        "{$CONF['sql_prefix']}_custom_pages" => true,
        "{$CONF['sql_prefix']}_etc" => true,
        "{$CONF['sql_prefix']}_categories" => true,
        "{$CONF['sql_prefix']}_ip_log" => false,
        "{$CONF['sql_prefix']}_reviews" => true,
        "{$CONF['sql_prefix']}_sessions" => false,
        "{$CONF['sql_prefix']}_sites" => true,
        "{$CONF['sql_prefix']}_stats" => true,
      );


replace with
Code: Select all
    else {
      $tables_to_backup = array(
        "{$CONF['sql_prefix']}_settings" => true,
        "{$CONF['sql_prefix']}_bad_words" => true,
        "{$CONF['sql_prefix']}_ban" => true,
        "{$CONF['sql_prefix']}_custom_pages" => true,
        "{$CONF['sql_prefix']}_etc" => true,
        "{$CONF['sql_prefix']}_categories" => true,
        "{$CONF['sql_prefix']}_ip_log" => false,
        "{$CONF['sql_prefix']}_reviews" => true,
        "{$CONF['sql_prefix']}_sessions" => false,
        "{$CONF['sql_prefix']}_sites" => true,
        "{$CONF['sql_prefix']}_sites_edited" => true,
        "{$CONF['sql_prefix']}_stats" => true,
      );
Basti
Advanced Member
 
Posts: 1619
Joined: 2004-06-20 06:17 pm
Location: Germany

Return to Mods

Who is online

Users browsing this forum: No registered users and 1 guest