This commit is contained in:
Ty Clifford
2026-07-04 20:14:52 -04:00
parent 94aea8501f
commit bd0bfdc09f
4 changed files with 751 additions and 0 deletions
+19
View File
@@ -42,6 +42,25 @@ php cli/blog.php comments:spam 2
php cli/blog.php comments:delete 3
```
## Import Bludit
Import from a local directory on the server. The source can be the old Bludit root or the old `bl-content` folder.
```bash
php cli/import-bludit.php /var/www/old-bludit --dry-run
php cli/import-bludit.php /var/www/old-bludit
php cli/import-bludit.php /var/www/old-bludit/bl-content
php cli/import-bludit.php --source=/var/www/old-bludit --overwrite
```
The importer preserves original publish dates, modified dates, post/static-page type, draft/published state, categories, tags, authors, cover image metadata, allow-comments flags, page order, page-local files, and `bl-content/uploads`.
It also scans local comment export files under the old `bl-content/databases` and `bl-content/workspaces` directories. To point it at a specific local comment export:
```bash
php cli/import-bludit.php /var/www/old-bludit --comments=/var/www/old-bludit/comments.json
```
## Stats
Visits are appended to `storage/stats/visits.csv` with a header row suitable for spreadsheet import.