1) Logical backup
* SQL dumps
#mysqldump dbname tblnameNot suitable for huge backup. Both table structure and the data are stored together.(option available)
* Delimited file backups
backing up :
mysql> SELECT * INTO OUTFILE '/tmp/t1.txt'
-> FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
-> LINES TERMINATED BY '\n'
-> FROM test.t1
restore :
mysql> LOAD DATA INFILE '/tmp/t1.txt'*parallel dump: maatkit(mk-parallel-dump)
-> INTO TABLE test1.t1
-> FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
-> LINES TERMINATED BY '\n';
2) File system snapshot (LVM)
not covered here.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น