Commands: convert - SlimeDog/pHD GitHub Wiki
Synopsis
/phd convert <sourceStorageType> <targetStorageType>
Description
The convert copies data between storage types. SQLITE and YAML storage types are supported.
The database file for the sourceStorageType must exist.
Required parameters
- sourceStorageType
- targetStorageType
Tab-completion is available for all parameters.
Output
Success or failure
How to
Recommendation: Back up the data, and test the procedure in a non-production environment, before executing it on a production server.
- Execute the command.
- Verify that the newly-created target data are consistent with the source data.
- Use sqlite3 (or equivalent) to view SQLITE data.
- Use a text file reader to view YAML data.
- Edit _plugins/pHD/config.yml_ to reflect the new data storage type.
- Execute phd reload to use the newly-created target data.
Examples
/phd convert SQLITE YAML
Started converting from SQLITE to YAML
Done converting from SQLITE to YAML
/phd convert YAML SQLITE
Started converting from YAML to SQLITE
Done converting from YAML to SQLITE
Localization
Messages may be localized. See Localization.