##############################################################
## MOD Title: Backup Pro MOD
## MOD Description: Backup/Restore big databases in spite of the server limits (for the backup/restore of databases larger than 5MB)
##
## MOD Author: IOsetting
##             http://www.phpbbchina.com
## 
## MOD Version: 1.0.0 for phpBB 3.0.5 ( should support all 3.0.x versions)
## Installation Level: easy
## Installation Time: 5 minutes
##
## Files To Edit: 1
## language/es/acp/common.php
##
##
## Included Files:
##
## adm/style/acp_databasepro.html
## includes/functions_databasepro.php
## includes/phpzip.inc.php
## includes/acp/acp_databasepro.php
## includes/acp/info/acp_databasepro.php
## language/es/acp/databasepro.php
##
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##
##############################################################
## MOD History:
##
## 2009-10-25 - Version 1.0.0
##
##############################################################
##
## Before Using This MOD On Your Forum, You Should Test It In You Testing Environment
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD, And Back Your Database
##
##############################################################

#
#-----[ COPIAR ]------------------------------------------
#

copiar:	adm/style/acp_databasepro.html
a:	adm/style/acp_databasepro.html

copiar:	includes/functions_databasepro.php
a:	includes/functions_databasepro.php

copiar:	includes/phpzip.inc.php
a:	includes/phpzip.inc.php

copiar:	includes/acp/acp_databasepro.php
a:	includes/acp/acp_databasepro.php

copiar:	includes/acp/info/acp_databasepro.php
a:	includes/acp/info/acp_databasepro.php

copiar:	language/en/acp/databasepro.php
a:	language/es/acp/databasepro.php

# 
#-----[ ABRIR ]------------------------------------------
#  

language/es/acp/common.php

#
#-----[ BUSCAR ]------------------------------------------
#

 		'ACP_BACKUP'				=> 'Backup',

# 
#-----[ AGREGAR DESPUES ]------------------------------------------
#

 		'ACP_BACKUPPRO'				=> 'Backup Pro',

#
#-----[ BUSCAR ]------------------------------------------
#

 		'ACP_DATABASE'				=> 'Database management',

# 
#-----[ AGREGAR DESPUES ]------------------------------------------
#

 		'ACP_DATABASEPRO'		=>  'Database management Pro',

#
#-----[ BUSCAR ]------------------------------------------
#

 		'ACP_RESTORE'				=> 'Restore',

# 
#-----[ AGREGAR DESPUES ]------------------------------------------
#

 		'ACP_RESTOREPRO'				=> 'Restore Pro',

#
# Configuration
# 
#-----[ ABRIR ]------------------------------------------

includes/acp/acp_databasepro.php

#-----[ BUSCAR ]------------------------------------------

$archive_store = 'somewhere';

#-----[ CONFIGURACION ]------------------------------------------

$archive_store - This is the folder where your compressed archive will be stored in. Change it to some other names for security sakes.

#
# Instalar/Desinstalar
#

copiar:	update_module_databasepro.php
a:	update_module_databasepro.php

Run install/uninstall script from your web browser
* Install: http://Your forum root url/update_module_databasepro.php?m=install 
* Unistall: http://Your forum root url/update_module_databasepro.php?m=uninstall

After installation, you will find "Backup Pro" and "Restore Pro" in ACP->Maintenance->Database section

Important: 
In backup and restore operations, you should use an admin account with a user_id < 100. If you use an admin account with large user_id, you may lost your admin session during the restore.
Because the restore is performed piece by piece, a user with large user_id may not be restored in the first restore step of the users table, then the forum ACP will deny the visits.

When the backup and restore is running, don't try to click the "next" links -- unless the browser doesn't redirect the page automatically.


Be noted: 
Before Using This MOD On Your Forum, You Should Test It In You Local and Production Environment, and backup your database.

The author of this MOD won't be responsible for any data losses in your using of this MOD.
