Magento 1.9.4 --> Magento 2.4.2-p1

I successfully ran the settings and data migration using the Magento Migration tool. Now I read up on how to transfer the Media Files over (product images) and the guide I'm looking at says:

Expect to manually transfer a few aspects of your site, such as images.

To copy the data over to Magento 2, we simply copy the M1:media folder over to M2:pub/media:

cp -r /path/to/magento1/media /path/to/magento2/pub

After that, we have to reindex the Magento 2 store with the following command:

php bin/magento indexer:reindex

Then recompile it:

php bin/magento deploy:mode:set production

Now, our website should have all our M1 products, along with their images.

My question is - can I do this via FTP? The reason being is running commands via SSH ROOT seems to cause a problem for us as the files change ownership and it needs to be chmoded afterwards to assign the correct ownership?

If I download the media directory to a local folder and then re-upload it to the new site's Media folder, do I still have to run those commands to reindex the Magento 2 store and recompile it?

Also - am I to copy /public_html/media/catalog/product or should I copy everything in the Media folder?

As per a request from @Nilesh Dubey here is my config.xml file:

<?xml version="1.0" encoding="UTF-8"?>
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
<config xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
    <steps mode="settings">
        <step title="Settings Step">
        <step title="Stores Step">
    <steps mode="data">
        <step title="Data Integrity Step">
        <step title="EAV Step">
        <step title="Customer Attributes Step">
        <step title="Map Step">
        <step title="Url Rewrite Step">
        <step title="Log Step">
        <step title="Ratings Step">
        <step title="ConfigurablePrices step">
 <!--       <step title="OrderGrids Step">                   -->
 <!--           <integrity>Migration\Step\OrderGrids\Integrity</integrity>       -->
 <!--           <data>Migration\Step\OrderGrids\Data</data>                      -->
  <!--          <volume>Migration\Step\OrderGrids\Volume</volume>                 -->
 <!--       </step>                                                              -->
        <step title="Tier Price Step">
   <!--     <step title="SalesIncrement Step">                                         -->
   <!--         <integrity>Migration\Step\SalesIncrement\Integrity</integrity>           -->
   <!--         <data>Migration\Step\SalesIncrement\Data</data>                         -->
   <!--         <volume>Migration\Step\SalesIncrement\Volume</volume>                  -->
   <!--     </step>                                                                    -->
        <step title="Inventory Step">
        <step title="PostProcessing Step">
    <steps mode="delta">
        <step title="Customer Attributes Step">
        <step title="Map Step">
        <step title="Log Step">
        <step title="ConfigurablePrices step">
        <step title="Tier Price Step">
        <step title="Url Rewrite Step">
        <step title="OrderGrids Step">
        <step title="SalesIncrement Step">
        <step title="Inventory Step">
        <database host="localhost" name="name_of_database_Magento1" user="user_of_database_Magento1" password="password_of_database_Magento1"/>
        <database host="localhost" name="name_of_database_Magento2" user="user_of_database_Magento2" password="password_of_database_Magento2"/>
        In case bulk_size=0 it will be auto-detected for every document.
        Set direct_document_copy = 1 for better performance.
        NOTE: 'source' and 'destination' databases MUST be placed on the same MySQL instance
        and 'destination' user MUST be granted with 'SELECT' permissions on 'source' database
        <progress_bar_format>%percent%% [%bar%] Remaining Time: %remaining%</progress_bar_format>
        <init_statements_source>SET NAMES utf8;</init_statements_source>
        <init_statements_destination>SET NAMES utf8;</init_statements_destination>

UPDATED again on July 13th, 2021:

I am now using FTP to download all folders and subfolders in the Media directory on Magento 1 with the plan of re-uploading this to Media in Magento 2. Looking at the subdirectories of my Magento1/public_html/media directory:


It seems that some of these folders have to do with the Porto theme which I will install and configure fresh for Magento 2 and also some extensions which again I will install specifically in their Magento 2 versions.

Would someone be able to advise which of these subcategories can be skipped when re-uploading the Media folder to the new Magento 2?

ANSWER on July 14th, 2021:

The following directories are Magento default folders which need to be copied:

 1. catalog
 2. customer
 3. dhl
 4. downloadable
 5. xmlconnect 

Do not copy the .htaccess!

  • Can you please share the config.xml file (remove the cred info). If possibel Jul 13, 2021 at 20:16
  • @Nilesh Dubey - I have now published my config.xml in my original post above.
    – Allysin
    Jul 13, 2021 at 21:18

1 Answer 1


Yes, you can use FTP.

As per your concern about the file ownership issue. Actually It depends on the server if you are using SiteGround then you won't face any issue. If you are using Cloudways, they provide an option in the App section to reset files ownership.

But using FTP if you have both Magento 1 and 2 on the same server will take more time. If you are planning to upload the zip and unzip by command then also you will face the same permission issue.

The best way will be to have chat with the server spoke person and get the best from your host

All media files (images for products, categories, the WYSIWYG editor, and so on) should be copied manually from your Magento 1 install media folder to your Magento 2 install pub/media folder.

Then just run reindex command ( even this also optional ).

  • Thank you for your answer. I am KISS (Keep It Simple Stupid) kind of a person so I am currently downloading all folders and files from Magento 2/public_html/media folder via FTP. I wonder if all the folders are necessary though? I have the following in my Media folder: captcha, catalog, css, css_secure; customer; dailydeal; dhl; downloadable; email; favicon; import; js; magpleasure; porto; smartwave; tmp; wysiwyg; xmlconnect; I have purchased all the extensions specific for M2 and will get them installed afterwards. Please let me know if I can skip any of these subdirectories. Thanks.
    – Allysin
    Jul 13, 2021 at 21:23
  • Regarding what you suggested to 'have a chat with the server spoke person and get the best from your host' - what exactly should I tell them/ask for? Thanks.
    – Allysin
    Jul 13, 2021 at 21:36
  • @Allysin- Ask them about the file permission and chown command, if you are facing a permission issue and about skipping comments then you do it step by step. set priority to product/catalog one than go for other, In this way, you will come to know what you need to skip and whatnot, and thanks for updating the config.xml file Jul 14, 2021 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.