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.
- Accessing the File Manager
- Navigating the File Manager
- Uploading Files
- Creating, Removing, and Editing Files
- Copying and Moving Files
- Compressing Files into an Archive (GZip)
- Extracting Files from an Archive
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.
- Log in to your Bluehost Account Manager.
- Click on the Hosting tab in the side navigation menu on the left, and then click on File Manager.
Once you're in cPanel:
- Navigate to the folder which contains the files or folders you want to compress.
- Select the files or folders you want to compress.
- Hold control to select multiple items or hold shift to select a group of items.
- With the appropriate files and folders selected (usually highlighted in blue), click the Compress icon from the top-left toolbar.
- Alternatively, you can right-click on the selected files and click on Compress from the drop-down menu as pictured above.
- A dialogue box will appear asking which compress type you prefer.
- After choosing your preferred compression, scroll down, and you will see a field indicating the location path 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 /.)
- Click the Compress File(s) button.
- This is what you will see while the compression is in progress.
- And here's what it will look like 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.