Extract a Portion of a Large Database Backup
The following function reads a large Updraft backup file and extracts a portion to another file. In this way, you can pull out the MYSQL insert statements for the table you want. And in the process, create a smaller file you can actually open. You can set Updraft to create smaller backups. But if you get stuck with one of these monster files, this is how you can parse out what you need. In this case, I put the file in the same directory as the code and new file. You may have to change the path to the...