Jon Dramond Jon Dramond
Reading Time: 1 minute

There is a lot to consider when running a Magento 2 store and one of these things includes how you are going to import compressed data. This is not an easy task and it is important that you know the difference between how one method might help your site more in comparison to another method. Here, we are going to talk you through the two methods that you can use to import compressed data into Magento 2. Keep reading if you’d like to find out more.

The Common Method

The first method that we are going to talk you through in this blog is the most common method that people use to import compressed data into their Magento 2 store. It is relatively easy to follow for those who are just starting out on Magento 2 web development. The reason why you might try this method is if you want to import a .zip file that you have downloaded but you come to realise that you cannot import a .zip file to your store directly. You will need to unpack the file using the steps that we are going to take you through.

The first step is to install the command for unzipping. You might already have this in the system but if not then it is needed before you begin. To extract the desired information, you should run the following command:

sudo apt-get install unzip

Next, you’ll need to extra your data file to the folder that you want it to go in. To do this, add the following code:

unzip file.zip -d destination_folder

After this, your file will be unpacked, and you will be able to import it into your Magento 2 store.

The Pros and Cons

The main pro of the common method is that you can use it to import the compressed data, which is the main aim of this blog. On the flip side, there are some cons to using this method. One of these is that you will need to be able to deal with multiple file formats using multiple commands. Another is that you cannot automate data updates.

The Alternative Method

If you aren’t pleased with the common method of doing this, you should think about installing the Improved Import and Export Magento 2 extension. This is the alternative method for performing this task and it has a lot of pros attached to it.

All you really need to do is download the extension and add it to your site. You won’t need to extract files, you can create a new import profile and begin the update.

Pros and Cons

The pros of the alternative method definitely outweigh the pros of the common method. With this method, you don’t need to learn commands, you can import data directly without unpacking it and you can automate data updates. There are lots more advantages to using this software and the only real con is that it is a third-party tool.