If all you have access to is your WordPress db backup, this is a simple way to archive your blog to GitHub for free
- Your WordPress db backup
- GitHub repository
- GitHub personal access token
- Python 3+
- Git
- Restore your WordPress db backup to your local MySQL
- Create a GitHub repository on https://github.com
- Generate a personal access token
- Download the script here in a folder, replace with your information
- Install required Python packages above (if you don't have them yet)
- Run the script
- Check your GitHub repository