/*
VNToday backup/restore for MySQL
Version 1.3 02/03/2004
Original version by chuongbom (©Le Van Chuong - VnToDaY)
Modified by pfiev@VNToday
FEATURE
- Fast backup/restore, small files (when using gzip)
- Support huge database and backup files
- Support prefix (for multi-scripts share a database)
- Support excluded tables (eg. you don't want back up a 'session table')
- Friendly/Easy interface
CONFIGURATION
The default values are usually the best
- MAXLENGTH: maximum length of a query. Default 20000
- REMARK: remark character. Default '#' (may be '--' with mysqldump)
- TIMEOUT: script timeout (in second), don't set too high
Default 120 (enough for 200 MB database with a fast server)
- MAXGZIP: max uncompressed filesize can gzip (depends on memory), works in NORMAL mode
Default 50 MB (in fact, should be less than 10 MB, you should switch to BIGDATA mode for big data)
- PARSESQL: support multi-lines sql data. Must set to 'true' if you want to restore
from data of other scripts. Default 'false'
- BIGDATA: enable BIGDATA mode for restore data. Il works only with data created by itself.
support gzipped and very large data (a few GB). Run a little bit more slowly
Default 'true'
- TMP_DIR: directory in which temporary file will be create. If not specify, default 'TMP dir' will be used
(if PHP version support getting this dir), or c:\windows\temp for Windows, /tmp for others
Set '.' to use current directory
Default '' (empty/not specified)
SPECIFICATION
- Filename format vnt_dbname_date-or-anything.sql(.gz)
- Everyline, who doesn't start by #, is a query
- Consume little memory in backup mode (about 1MB when using gzip)
- Consume much memory in restore mode, except for BIGDATA mode (about 1MB)
- Require MySQL 3.23+, PHP 4.1.0+ (safe mode OFF for big database)
NOTES
- Hasn't been tested carefully, use it as your own risk
- set PARSESQL to 'true' to restore from others scripts' files
- for a big database, please set BIGDATA to true
- this script is for VNTODAY, don't blame me if it doesn't work with your host
HISTORY
1.3 (02/03/2004)
- no temporary files
- small_memory support (somewhen mysqldump can't work, but sqlbackup works always!)
- convergence of version 1.1.1 and 1.2
1.2 (10/02/2004)
- PHP 4.1.2 (Yahoo! webhosting) bug fix: sqlbackup?backup doesn't create $_GET['backup']
- tiny memory/cache use in mySQL (and a little bit slower)
- error handler
1.1.1 (24/12/2003)
- split out dump/compression to be able to deal with bigger data on safe mode
1.1 (13/12/2003) by pfiev
- backup/restore/gzip in one script
- new query syntax from 3.23 to dump table's structure
- support FULLTEXT property
- add many records in a single query
- friendly interface
- many small improvements
1.0 by chuongbom
*/
Hướng dẫn wá chi tiết rùi , đừng hỏi anh sử dụng làm sao , đọc cho kỹ , những câu hỏi nào đã có trong hướng dẫn anh sẽ không trả lời .