-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grep detects binary data in dump and does not output any data #19
Comments
Note that the binary data is from a header line added by mysql-zrm. It would be nice to have an option to remove this header line in the script without having to extract the backup and re-save the file. |
Updated grep to include "-a" option as per issue #19
Hi Gary @Phone911 , |
The dump may be more complex than the splitter program will support. The first part of the backup contains the dump of the databases and tables, then after that is done for all databases, it then contains a dump of all views. You end up with a primary "Current Database: I ran: "zcat db.sql.gz | tail -n +2 | grep -n '^-- ' >dump.example" to see all the dump sections. This resulted in (simulated) output like: The way splitter is structured and the way this dump is structured all the databases will be processed twice and the second half will not be included in the individual dump files. I would understand if you just close this issue without a solution at this time for mysql-zrm mysqldumps. |
if there is any binary data detected in the mysqldump output, the grep command that searches for databases and tables will not output any data. On RedHat Linux system you can add the "-a" option to grep to treat the data as text and then the script will work normally.
The text was updated successfully, but these errors were encountered: