Ticket #2869: mythtv-HOWTO-recordedprogram_and_recordedrating_export.patch

File mythtv-HOWTO-recordedprogram_and_recordedrating_export.patch, 2.3 KB (added by sphery <mtdean@…>, 14 years ago)
  • docs/mythtv-HOWTO.sgml

     
    63146314
    63156315Next, you will extract only the data that is relevant to the programs:
    63166316<tscreen><verb>
    6317 $ grep "INSERT INTO record "         mythtv_backup.sql > restore.sql
    6318 $ grep "INSERT INTO recorded "       mythtv_backup.sql >> restore.sql
    6319 $ grep "INSERT INTO oldrecorded "    mythtv_backup.sql >> restore.sql
    6320 $ grep "INSERT INTO recordedmarkup " mythtv_backup.sql >> restore.sql
    6321 $ grep "INSERT INTO recordedseek "   mythtv_backup.sql >> restore.sql
     6317$ grep "INSERT INTO record "          mythtv_backup.sql > restore.sql
     6318$ grep "INSERT INTO recorded "        mythtv_backup.sql >> restore.sql
     6319$ grep "INSERT INTO oldrecorded "     mythtv_backup.sql >> restore.sql
     6320$ grep "INSERT INTO recordedprogram " mythtv_backup.sql >> restore.sql
     6321$ grep "INSERT INTO recordedrating "  mythtv_backup.sql >> restore.sql
     6322$ grep "INSERT INTO recordedmarkup "  mythtv_backup.sql >> restore.sql
     6323$ grep "INSERT INTO recordedseek "    mythtv_backup.sql >> restore.sql
    63226324</verb></tscreen>
    63236325
    63246326<bf>NOTE</bf>:  Newer versions of <bf>mysqldump</bf> place backticks around
     
    63306332If your <tt>restore.sql</tt> file is empty, you'll need to re-run the
    63316333commands like this:
    63326334<tscreen><verb>
    6333 $ grep "INSERT INTO \`record\` "         mythtv_backup.sql > restore.sql
    6334 $ grep "INSERT INTO \`recorded\` "       mythtv_backup.sql >> restore.sql
    6335 $ grep "INSERT INTO \`oldrecorded\` "    mythtv_backup.sql >> restore.sql
    6336 $ grep "INSERT INTO \`recordedmarkup\` " mythtv_backup.sql >> restore.sql
    6337 $ grep "INSERT INTO \`recordedseek\` "   mythtv_backup.sql >> restore.sql
     6335$ grep "INSERT INTO \`record\` "          mythtv_backup.sql > restore.sql
     6336$ grep "INSERT INTO \`recorded\` "        mythtv_backup.sql >> restore.sql
     6337$ grep "INSERT INTO \`oldrecorded\` "     mythtv_backup.sql >> restore.sql
     6338$ grep "INSERT INTO \`recordedprogram\` " mythtv_backup.sql >> restore.sql
     6339$ grep "INSERT INTO \`recordedrating\` "  mythtv_backup.sql >> restore.sql
     6340$ grep "INSERT INTO \`recordedmarkup\` "  mythtv_backup.sql >> restore.sql
     6341$ grep "INSERT INTO \`recordedseek\` "    mythtv_backup.sql >> restore.sql
    63386342</verb></tscreen>
    63396343
    63406344Note the space after the table name and the ">>" to append to the file for