Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm BaaaaAAAAaccck!
RE: I'm BaaaaAAAAaccck!
#7
(04-20-2019, 01:07 AM)Black Aeronaut Wrote: From what I understand, it was a tedious, but simple process.  I think it was Labster that wrote up the script that converted the raw forum-rip data into something acceptable to  MyBB database.  Bob only had to do a relatively few himself afterwards.  And then from there, it's just a matter of associating your new account with the placeholder names in the database.

The beginning was a bit more complex and I actually did a lot more work than that. 

Labster did write the code that ripped the Crapatalk forums, which turned them into a SQLite database -- a table of threads, a table of posts and a table of users. And other than some advice when I needed it, that's where his part of the process ended. 

Ultimately I had to move that data into MySQL here on my site while preserving all the relationships between threads, forums and posts. However, because of a feature lacking in SQLite, that meant I had to export it all and then imported it back into Microsoft SQL Server first. 

Then I wrote MSSQL scripts that went through each forum, read each thread, and wrote out a MySQL script that would recreate that thread.  I ran all that in large batches, one forum at a time, debugging things when the scripts crashed, and actually changing a few things about how the MyBB database was set up so that some of our larger messages would be recreated properly. Overall, that took me about a month of programming, testing, and moving content, although I was able to speed up the process quite a bit toward the end. As I moved them, I locked the individual forums on the old board and sent people here. When everything was moved and the old boards locked down complete, I had to run Labster's tool one final time to get everything that had been added to the old forums between his scrape and me completing the transfer, and transfer that in as well.

I didn't do much with the user data until recently, when I figured out how to carry over the original registration dates.  But it was easy enough to associate old posts with new accounts, which I was doing right from the start -- three one-line scripts that I just plug in the username and the new id, and I can give anyone their old posts back.  I also have a variant for when the user changed their name between the old board and the new board.  They sit in a script file I keep in two or three places just for backups and anytime someone from the old board registers, it takes me all of ten seconds to give them their post history back.

My next db project is fixing a date/time shift that crept in when I moved the dates in UNIX era format -- it seems to have ignored the offset from UTC for my time zone and set everything a few hours off.

And that was probably far more than you cared to know about the process.
-- Bob

I have been Roland, Beowulf, Achilles, Gilgamesh, Clark Kent, Mary Sue, DJ Croft, Skysaber.  I have been 
called a hundred names and will be called a thousand more before the sun grows dim and cold....
Reply


Messages In This Thread
I'm BaaaaAAAAaccck! - by Wiregeek - 04-19-2019, 09:48 PM
RE: I'm BaaaaAAAAaccck! - by Bob Schroeck - 04-19-2019, 09:50 PM
RE: I'm BaaaaAAAAaccck! - by Black Aeronaut - 04-19-2019, 09:53 PM
RE: I'm BaaaaAAAAaccck! - by Wiregeek - 04-19-2019, 10:11 PM
RE: I'm BaaaaAAAAaccck! - by Black Aeronaut - 04-20-2019, 01:07 AM
RE: I'm BaaaaAAAAaccck! - by Bob Schroeck - 04-22-2019, 09:34 PM
RE: I'm BaaaaAAAAaccck! - by DHBirr - 04-20-2019, 05:30 AM
RE: I'm BaaaaAAAAaccck! - by Wiregeek - 04-23-2019, 12:21 AM
RE: I'm BaaaaAAAAaccck! - by Labster - 04-23-2019, 03:45 AM
RE: I'm BaaaaAAAAaccck! - by classicdrogn - 04-23-2019, 06:52 AM
RE: I'm BaaaaAAAAaccck! - by Bob Schroeck - 04-23-2019, 07:11 AM
RE: I'm BaaaaAAAAaccck! - by Labster - 04-24-2019, 02:38 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)