Step 3: Create a tar (of the site you want to migrate). SSH to your site server and run this command.
drush ard --destination=sites/default/files/P0zG8ohjLKFBI6Y.tgz
terminus drush gv-d7-learning-site.dev -- ard --destination=sites/default/files/P0zG8ohjLKFBI6Y.tgz
Example on how to run Solr indexing via Terminus and Drush on Pantheon platform.
Index a total of 200 items in batches of 50 on LIVE environment index-id
40 ("All Search Content"):
terminus remote:drush site.live -- search-api-index 40 200 50
Where:
$fb = new \Facebook\Facebook([
'app_id' => 'xxx',
'app_secret' => 'xxx',
'default_access_token' => 'xxx',
'default_graph_version' => 'v2.11',
]);
try {
$response = $fb->post(
info commandstats
- collect throughput metric values for all the commands run on the Redis server
info memory
- collect all memory utilization metrics data for a Redis instance
Memory RSS (Resident Set Size) is the number of bytes that the operating system
has allocated to Redis. If the ratio of ‘memory_rss’ to ‘memory_used’ is greater
than ~1.5, then it signifies memory fragmentation. The fragmented memory can be
recovered by restarting the server.
$modules = array(); | |
$status = array('rc', 'dev', 'alpha', 'beta',); | |
foreach (system_rebuild_module_data() as $module) { | |
// We deal only with enabled modules. | |
if ($module->status != 1) { | |
continue; | |
} | |
// We deal only with contrib modules. |
drush sql-drop -y && gunzip -c /path/to/file.sql.gz | drush sqlc
ssh -X remote_user@remote_host synergy &
Check /etc/ssh/sshd_config
on the server side:
sudo nano /etc/ssh/sshd_config
Set the config the same as lines below:
Supposed that you are connected to a wifi network but you don't the password is.
In Ubuntu just navigate to:
$ cd /etc/NetworkManager/system-connections/
And find sa SSID that you want to view the password.