You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/cloud/live/stage-prod-migrate.md
+31-10Lines changed: 31 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,19 +128,36 @@ You can use the [Magento Cloud CLI commands]({{ site.baseurl }}/cloud/reference/
128
128
129
129
## Migrate static files
130
130
131
-
[Static files](https://glossary.magento.com/static-files) are stored in `mounts`. You can list the mounts available in your project using the `magento-cloud` CLI:
131
+
[Static files](https://glossary.magento.com/static-files) are stored in `mounts`. There are two methods for migrating files from a source mount location, such as your local environment, to a destination mount location. Both methods use the `rsync` utility, but we recommend using the `magento-cloud` CLI for moving files between the local and remote environment.
132
+
133
+
### Migrate files using the CLI
134
+
135
+
You can use the `mount:upload` and `mount:download` CLI commands to migrate files. Both commands use the `rsync` utility, but the CLI provides options and prompts tailored to the {{site.data.var.ece}} environment. For example, if you use the simple command, the CLI prompts you to select which mount or mounts to upload or download.
132
136
133
137
```bash
134
-
magento-cloud mount:list
138
+
magento-cloud mount:download
135
139
```
136
140
137
-
There are two methods for migrating files from a source mount location, such as your local environment, to a destination mount location. Both methods use the `rsync` utility, but we recommend using the `magento-cloud` CLI.
141
+
Sample response:
138
142
139
-
### Migrate files using the CLI
143
+
```terminal
144
+
Enter a number to choose a mount to download from:
145
+
[0] app/etc
146
+
[1] pub/static
147
+
[2] var
148
+
[3] pub/media
149
+
[4] All mounts
150
+
> 3
140
151
141
-
You can use the `mount:upload` and `mount:download` CLI commands to migrate files. Both commands use the `rsync` utility, but the CLI provides options and prompts tailored to the {{site.data.var.ece}} environment.
152
+
Target directory: ~/pub/media/
142
153
143
-
The following example uploads files from a local `pub/media/` folder to the remote `pub/media/` folder for the current environment:
154
+
Downloading files from the remote mount pub/media to pub/media
155
+
156
+
Are you sure you want to continue? [Y/n] Y
157
+
```
158
+
159
+
{:.procedure}
160
+
To upload files from a local `pub/media/` folder to the remote `pub/media/` folder for the current environment:
@@ -186,20 +203,24 @@ To migrate static files from remote-to-remote environments directly (fast approa
186
203
{:.bs-callout-info}
187
204
To transfer media from remote-to-remote environments directly, you must enable SSH agent forwarding, see [GitHub guidance](https://developer.github.com/v3/guides/using-ssh-agent-forwarding/).
188
205
189
-
1.[Open an SSH connection]({{ site.baseurl }}/cloud/env/environments-ssh.html#ssh) to the source environment.
206
+
1.Use SSH to log in to the source environment. Do not use the `magento-cloud` CLI.
190
207
191
-
To find the **SSH access** link in your Project Web Interface, select the environment and click **Access Site**. The syntax for the SSH command is as follows:
208
+
To find the **SSH access** link in your Project Web Interface, select the environment and click **Access Site**.
0 commit comments