2 legacy_dataset_dump
rainbow napkin edited this page 2025-10-08 05:59:12 -04:00

Step-by-Step procedure for Prepping a Legacy fore.st dataset for Migration Ingestion

  1. Log-in to your legacy fore.st server and dump the database mysqldump --quick --skip-lock-tables -u forest -p forest > forest.sql
  2. Copy the database file locally, make a second copy called 'users.sql'
  3. Pop the bitch in VIM (or a lamer editor) and find the line that looks like INSERT INTO `users` VALUES
  4. Delete that line and everything above it.
  5. Drop down to the last username entry and delete everything between it and EOF.
  6. You should now have a list that contains user information to be ingested by Canopies migration utilities.

ALWAYS DELETE THIS FILE AFTER IT HAS BEEN INGESTED BY CANOPY, LEAVING A PLAINTEXT FILE, ESPECIALLY ON A PRODUCTION WEB SERVER, CONTAINING OUTDATED PASSWORD HASHES, EMAILS, AND IP'S IS IRRESPONSIBLE AS SHIT!!

DATABASES HAVE SECURITY FEATURES FOR A REASON!!!