1. bluehost knowledge base

File Manager - How to Compress Files into an Archive (GZip)

This article is part of our File Manager tutorial series. Please see the links below if you are looking for a different explanation of the File Manager.



A compressed file (archive) is a file that contains several other files or folders which have been written in a format that takes up less space. This is helpful when you want to back files or folders up to a local machine. GZip is an application for compressing files on Linux systems. GZip is already implemented on our servers and will allow you to compress and extract files from the file manager. This is not the same as mod_gzip.

Compressing Files into an Archive using GZip

Bluerock 

  1. Log in to your Bluehost control panel.
  2. Click on the Advanced tab from the side navigation menu to the left.
    rock-bh-advanced-tab
  3. Locate the File Manager under the Files section.
    rock-bluehost-file-filemanager
  4. Navigate to the folder which contains the files or folders you want to compress.
  5. Select the files or folders you want to compress.
  6. Hold control to select multiple items or hold shift to select a group of items.
  7. With the appropriate files and folders selected (usually highlighted in blue), click the Compress icon from the top-left toolbar.
    rock-compress-files
  8. Alternatively, you can right-click on the selected files and click on Compress from the drop-down menu as pictured above.
  9. A dialogue box will appear asking which compress type you prefer.
    rock-gzip
  10. After choosing your preferred compression, scroll down, and you can see a field file's location on of the file. It's better if you keep the file in the public_html directory but change the file name. (The word after the last forward slash /.)
    rock-compressing-files
  11. Click the Compress File(s) button.
  12. This is what you will see while the compression is in progress.
    creating-archive
  13. And here's how it will look like once done. 
    compression-results

Note: We recommend using GZip as it has the best data compression ratio and compression times.

Legacy

  1. Log in to your Bluehost account.
  2. Click on cPanel and locate the File Manager tool under the files category.
    legacy-file-manager
  3. Navigate to the folder which contains the compressed file you want to extract, and select it.
  4. Select the files or folders you want to compress.
  5. Hold control to select multiple items or hold shift to select a group of items.
  6. With the appropriate files and folders selected (usually marked by being highlighted in blue), click the Compress icon from the top-right toolbar.
    legacy-compress-files
  7. Alternatively, you can right-click on the selected files and click on Compress from the drop-down menu as pictured above.
  8. A dialogue box will appear asking which compress type you prefer.legacy-compressing-files
  9. Fill out the text field below for the location of the file. It's better if you keep the file in the public_html directory but change the file name. (The word after the last forward slash /.)
  10. Click the Compress File(s) button.
  11. You will see a pop-up box with the title Creating Archive as the compression is in progress.
  12. And it will prompt you with Compression Results once done.

You will now have a GZip(.gz), Zip(.zip), or Bzip2(.bz2) compressed file of the items you selected. For more information on how-to extract this or other compressed files, please see our Extracting Files from an Archive article.

Important: For more information on compressing and extracting files through CLI (Command-Line Interface) instead of the File Manager, please see our Compress/Decompress files via CLI (Command-Line Interface) article.