- Import
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user