Automattic / newspack-custom-content-migrator

Custom migration tasks for launching and migrating Newspack sites on Atomic
5 stars 5 forks source link

Our Weekly 2024: Publisher CLIs for 2024 Ghost to WP Migation #499

Open ronchambers opened 5 months ago

ronchambers commented 5 months ago

Publisher specific cli's below.

ronchambers commented 4 months ago

Fix mixed up categories from initial import:

Command: wp newspack-content-migrator ourweekly2024-categories --json-file=[THIS IS THE SAME JSON AS BEFORE] Note: this uses the original migration file. It's probably still on the server somewhere. Running time: under 1 minute Output: OurWeekly2024Migrator_cmd_ourweekly2024_categories.log

ronchambers commented 4 months ago

Fetch and replace remote media in post content.

Command: wp newspack-content-migrator ourweekly2024-post-content Main log: OurWeekly2024Migrator_cmd_ourweekly2024_post_content.log Link logs: OurWeekly2024Migrator_cmd_ourweekly2024_post_content.log-links-*.log

After run, need to review link-* logs for any a href and iframe src for links to media files. Do by-hand.

Also review main log for any warnings or errors.

ronchambers commented 4 months ago

Helper:

wp newspack-content-migrator ourweekly2024-post-content-checker OurWeekly2024Migrator_cmd_ourweekly2024_post_content_checker.log

ronchambers commented 4 months ago

Set redirects as needed:

Command: wp newspack-content-migrator ourweekly2024-redirects Log: OurWeekly2024Migrator_cmd_ourweekly2024_redirects.log