Merge branch 'migration-format-0.3'
This commit is contained in:
commit
fa9215576e
1 changed files with 37 additions and 5 deletions
|
@ -1,19 +1,51 @@
|
|||
# IndieHosters migration format, version 0.2.2
|
||||
# IndieHosters migration format
|
||||
|
||||
# Version 0.3
|
||||
|
||||
### General
|
||||
|
||||
An IndieHosters migration archive is a directory structure (probably packaged up as a tar file or zip file).
|
||||
There should be an 'indiehosters.json' file in the root of the archive. It should contain at least the following fields:
|
||||
|
||||
* format: the URL of this spec (probably https://indiehosters.net/spec/0.3)
|
||||
* application: a string, which determines what the rest of the folder contents should be imported into.
|
||||
|
||||
|
||||
## Known
|
||||
|
||||
When migrating a Known application, the 'indiehosters.json' file should furthermore contain the following fields:
|
||||
|
||||
* application: 'known'
|
||||
* version: the version of Known as a string, for instance '0.6.5'
|
||||
* database:
|
||||
* engine: the database engine used, either 'mysql' or 'mongodb'
|
||||
* name: the database name inside the dump file, for instance 'known'
|
||||
* file: the database dump file inside the archive, for instance 'dump.sql'
|
||||
* uploads: the uploads folder name inside the archive, for instance 'uploads/'
|
||||
* plugins: the folder with any non-standard plugins for instance 'plugins/'
|
||||
|
||||
|
||||
## WordPress
|
||||
|
||||
(to be determined)
|
||||
|
||||
|
||||
## Version 0.2.2 (deprecated)
|
||||
|
||||
When a user exports their data for domain.com, they get a zip or tar file that contains different files, depending on which application is
|
||||
running on their domain:
|
||||
|
||||
## If using the 'static' application
|
||||
### If using the 'static' application
|
||||
|
||||
* TLS/domain.com.pem - Concatenation of the unencrypted private and public key of the TLS certificate, and intermediate CA cert if applicable.
|
||||
* static/www-content - static content to be placed in the web root
|
||||
|
||||
## If using the 'static-git' application
|
||||
### If using the 'static-git' application
|
||||
|
||||
* TLS/domain.com.pem - Concatenation of the unencrypted private and public key of the TLS certificate, and intermediate CA cert if applicable.
|
||||
* static-git/GITURL - git url to pull the static website content from
|
||||
|
||||
## If using the 'WordPress' application
|
||||
### If using the 'WordPress' application
|
||||
|
||||
* TLS/domain.com.pem - Concatenation of the unencrypted private and public key of the TLS certificate, and intermediate CA cert if applicable.
|
||||
* mysql/dump.sql - the dump of all their MySQL databases
|
||||
|
@ -23,7 +55,7 @@ running on their domain:
|
|||
* wordpress/.htaccess - htaccess file for WordPress
|
||||
* wordpress/wp-content - php files to be placed in the web root
|
||||
|
||||
## If using the 'Known' application
|
||||
### If using the 'Known' application
|
||||
|
||||
* TLS/domain.com.pem - Concatenation of the unencrypted private and public key of the TLS certificate, and intermediate CA cert if applicable.
|
||||
* mysql/dump.sql - the dump of all their MySQL databases
|
||||
|
|
Loading…
Reference in a new issue