Full Examples
Example: Migrate an existing Joomla app from a remote location to the user's account and then import it
Method: curl
curl -X POST https://{SERVER_IP}/browser/joomla/migrate \
-H 'X-API-KEY: {the key= or key2= value from /usr/local/installatron/etc/settings.ini}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '
{
"user": "useraccountname",
"url": "https://www.website.com/mylocaljoomla",
"source_url": "https://www.website.com",
"source_path": "sftp://user:pass@website.com/domains/website.com/public_html/myremotejoomla",
"source_url_ip": "123.123.123.123"
}
'
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate an existing WordPress application using Installatron's app:// protocol and the WordPress app's administrative login
Method: curl
curl -X POST https://{SERVER_IP}/browser/wordpress/migrate \
-H 'X-API-KEY: {the key= or key2= value from /usr/local/installatron/etc/settings.ini}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '
{
"user": "useraccountname",
"url": "https://www.website.com/mylocalblog",
"source_url": "https://www.website.com",
"source_path": "app://wp_admin_user:wp_admin_pass",
"source_url_ip": "123.123.123.123"
}
'
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate a WordPress application using Installatron's app:// protocol and the Installatron Migration Assistant WordPress plugin
Method: curl
curl -X POST https://{SERVER_IP}/browser/wordpress/migrate \
-H 'X-API-KEY: {the key= or key2= value from /usr/local/installatron/etc/settings.ini}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '
{
"user": "useraccountname",
"url": "https://www.website.com/mylocalblog",
"source_url": "https://www.website.com",
"source_path": "app://wp_admin_user:connention_id",
"source_url_ip": "123.123.123.123"
}
'
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Full Examples
Example: Migrate an existing Joomla app from a remote location to the user's account and then import it
Method: json payload to curl
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate an existing WordPress application using Installatron's app:// protocol and the WordPress app's administrative login
Method: json payload to curl
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate a WordPress application using Installatron's app:// protocol and the Installatron Migration Assistant WordPress plugin
Method: json payload to curl
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Full Examples
Example: Migrate an existing Joomla app from a remote location to the user's account and then import it
Method: curl, php, and a user's login
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_URL => "https://{SERVER_IP}/browser/joomla/migrate",
CURLOPT_HTTPHEADER => [
"X-API-KEY: {the key= or the key2= value from /usr/local/installatron/etc/settings.ini}",
"Accept: application/json",
"Content-Type: application/json"
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => json_encode(
[
'user' => 'useraccountname',
'url' => 'https://www.website.com/mylocaljoomla',
'source_url' => 'https://www.website.com',
'source_path' => 'sftp://user:pass@website.com/domains/website.com/public_html/myremotejoomla',
'source_url_ip' => '123.123.123.123'
]
)
]);
if (( $response = curl_exec($ch) )=== false )
{
trigger_error(curl_error($ch));
}
curl_close($ch);
var_export(json_decode($response, true));
?>
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate an existing WordPress application using Installatron's app:// protocol and the WordPress app's administrative login
Method: curl, php, and a user's login
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_URL => "https://{SERVER_IP}/browser/wordpress/migrate",
CURLOPT_HTTPHEADER => [
"X-API-KEY: {the key= or the key2= value from /usr/local/installatron/etc/settings.ini}",
"Accept: application/json",
"Content-Type: application/json"
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => json_encode(
[
'user' => 'useraccountname',
'url' => 'https://www.website.com/mylocalblog',
'source_url' => 'https://www.website.com',
'source_path' => 'app://wp_admin_user:wp_admin_pass',
'source_url_ip' => '123.123.123.123'
]
)
]);
if (( $response = curl_exec($ch) )=== false )
{
trigger_error(curl_error($ch));
}
curl_close($ch);
var_export(json_decode($response, true));
?>
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate a WordPress application using Installatron's app:// protocol and the Installatron Migration Assistant WordPress plugin
Method: curl, php, and a user's login
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_URL => "https://{SERVER_IP}/browser/wordpress/migrate",
CURLOPT_HTTPHEADER => [
"X-API-KEY: {the key= or the key2= value from /usr/local/installatron/etc/settings.ini}",
"Accept: application/json",
"Content-Type: application/json"
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => json_encode(
[
'user' => 'useraccountname',
'url' => 'https://www.website.com/mylocalblog',
'source_url' => 'https://www.website.com',
'source_path' => 'app://wp_admin_user:connention_id',
'source_url_ip' => '123.123.123.123'
]
)
]);
if (( $response = curl_exec($ch) )=== false )
{
trigger_error(curl_error($ch));
}
curl_close($ch);
var_export(json_decode($response, true));
?>
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Full Examples
Example: Migrate an existing Joomla app from a remote location to the user's account and then import it
Method: cli
/usr/local/installatron/installatron \
--POST /browser/joomla/migrate \
--user useraccountname \
--url https://www.website.com/mylocaljoomla \
--source_url https://www.website.com \
--source_path sftp://user:pass@website.com/domains/website.com/public_html/myremotejoomla \
--source_url_ip 123.123.123.123
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate an existing WordPress application using Installatron's app:// protocol and the WordPress app's administrative login
Method: cli
/usr/local/installatron/installatron \
--POST /browser/wordpress/migrate \
--user useraccountname \
--url https://www.website.com/mylocalblog \
--source_url https://www.website.com \
--source_path app://wp_admin_user:wp_admin_pass \
--source_url_ip 123.123.123.123
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate a WordPress application using Installatron's app:// protocol and the Installatron Migration Assistant WordPress plugin
Method: cli
/usr/local/installatron/installatron \
--POST /browser/wordpress/migrate \
--user useraccountname \
--url https://www.website.com/mylocalblog \
--source_url https://www.website.com \
--source_path app://wp_admin_user:connention_id \
--source_url_ip 123.123.123.123
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Full Examples
Example: Migrate an existing Joomla app from a remote location to the user's account and then import it
Method: json payload from cli
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate an existing WordPress application using Installatron's app:// protocol and the WordPress app's administrative login
Method: json payload from cli
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}
Example: Migrate a WordPress application using Installatron's app:// protocol and the Installatron Migration Assistant WordPress plugin
Method: json payload from cli
Response: json
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data":
{
"id": "1234567890abcdefghij12345",
"application": "wordpress",
"agent": "5.0.0",
"autobk": "schedule",
"autobk_schedule": "1234567890abcdefghij1234567890ab",
"autoup": "minor",
"autoup_backup": "all",
"autoup_plugins": "none",
"autoup_themes": "none",
"bkloc": "local",
"cache_numerrors": 1,
"cache_numwarnings": 0,
"cache_files": 12345678,
"cache_numbackups": 0,
"cache_preview": 12345,
"cache_tables": 123456,
"cache_time": 1234567890,
"db_host": "localhost",
"db_type": "mysql",
"db_name": "databasename",
"db_user": "databaseusername",
"db_pass": "dAtAbAsEpAs5//0rD",
"db_prefix": "wp_",
"login": "admin123",
"email": "admin@website.com",
"language": "en",
"sitetitle": "My blog",
"sitetagline": "Just another WordPress site",
"limitloginattempts": "yes",
"twofactor": "no",
"failures": [],
"file": "/home/useraccountname/.appdata/current/1234567890abcdefghij12345",
"files": [
"index.php",
"license.txt",
".htaccess",
".maintenance",
"readme.html",
"wp-activate.php",
"wp-admin",
"wp-app.php",
"wp-blog-header.php",
"wp-comments-post.php",
"wp-config.php",
"wp-config-local.php",
"wp-config-sample.php",
"wp-content",
"wp-cron.php",
"wp-includes",
"wp-links-opml.php",
"wp-load.php",
"wp-login.php",
"wp-mail.php",
"wp-settings.php",
"wp-signup.php",
"wp-trackback.php",
"xmlrpc.php"
],
"incomplete": true,
"link_admin": "wp-admin",
"notification": [],
"parent": "1234567890abcdefghiparent",
"path": "/home/useraccountname/public_html/staging",
"plugins": [
{
"id": "akismet",
"version": "5.3.6",
"activated": false,
"autoup": "all"
},
{
"id": "limit-login-attempts-reloaded",
"version": "2.26.18",
"activated": true,
"autoup": "all"
}
],
"stage": "1234567890abcdefghijstage",
"tables": [
"wp_commentmeta",
"wp_comments",
"wp_links",
"wp_options",
"wp_postmeta",
"wp_posts",
"wp_term_relationships",
"wp_term_taxonomy",
"wp_termmeta",
"wp_terms",
"wp_usermeta",
"wp_users"
],
"themes": [
{
"id": "twentytwentythree",
"version": "1.6",
"active": false,
"autoup": "all"
},
{
"id": "twentytwentyfive",
"version": "1.1",
"active": false,
"autoup": "all"
}
],
"time_created": 1611356510,
"time_updated": 1647057773,
"title": "My blog stage",
"url": "http://website.com/staging",
"url_domain": "website.com",
"user": "useraccountname",
"version": "6.7.2",
"version_autouped": "6.7.2",
"version_autouped_attempts": 1,
"version_available": "6.7.3",
"version_updates_available": 3
}
}