php - Automatic Database backup formatted for BigDump -
i'm wanting daily backups of mysql database, can restored using bigdump, 1 of tables has on 4,000,000 records. issue is, can't use extended inserts, explained on website.
note 1: bigdump fail processing large tables containing extended inserts. extended insert contains table entries within 1 sql query. bigdump isn’t able split such sql queries. in cases bigdump stop if query includes many lines.
i'm trying create sql dump chronjob compatable script? faq page can required results manually phpmyadmin:
in older versions of phpmyadmin extended inserts switch in export settings , set off. in newer phpmyadmin versions select include column names in every insert statement syntax use in data dump options of export dialog.
can me out php this? not experienced in using shell commands @ all! i've tried follow mysqldump docs here's got already:
<?php set_time_limit(86000); include($_server['document_root']."/pagetop.php"); $db = new dbsettings; $filename = date("d-m-y"); exec(" mysqldump --user=".$db->username." --password=".$db->password." --host=".$db->hostname." --add-drop-database --add-drop-table --skip-extended-insert --disable-keys --add-locks --force ".$db->databasename." > /backups/".$filename.".sql "); ?>
am missing arguments should used? , exec syntax correct? insight
Comments
Post a Comment