I made some small changes to the Backup and Migrate module:
- Define custom location for mysqldump
- MySQL --complete-insert option
- MySQL --extended-insert option
- Improved error reporting with exec
I apologize if this is the incorrect way to submit a patch as I am very new to the Drupal community and this is my first time trying to submit a patch on here :) Anyway, I noticed that importing MySQL dumps generated by this module were very slow due to the lack of --complete-insert and --extended-insert. This patch should allow for SQL files that are much faster to import.
I also allowed for the user to select the location of mysqldump on his computer. I found this quite handy when needing to do mysqldump on my laptop running MAMP (and mysqldump not being in the path).
Comment | File | Size | Author |
---|---|---|---|
add-mysqldump-options.patch | 7.43 KB | vmichnowicz | |
Comments
Comment #1
couturier CreditAttribution: couturier as a volunteer commentedThis patch may need to be rewritten based on the new 7.x-3.2 release.
Comment #2
DamienMcKennaComment #4
BrankoC CreditAttribution: BrankoC as a volunteer commentedThis appears to be an issue concerning database destinations (i.e. database backups that get saved to a database).
Database destinations existed in BAM 2, but are no longer part of BAM 3 (although most of the code is still there).
Comment #5
BrankoC CreditAttribution: BrankoC as a volunteer commented