Compressing inside the host means that the contents of your host directories, which may contain the entire file and folder, instead of downloading them one by one, are first converted to a file and then to that file. Easily download it or move it to another path from the host. For example, imagine there are 500 photos in one of your host folders, and you decide to download them to have them on your computer, One way is to download those 500 photos one by one, which does not make sense at all, and the second way is to convert all the photos to a zip file and easily download that file, now we have the photo here. an example, but most of the use of compression is that when we want to transfer our site information from one host to another, we can easily convert all files and folders in the old host to a compressed file and then a compress file. Download it and upload it to another host.
To compress files in Cpanel, first, enter your site host by learning how to log in to C Panel host, and from the files section, click on file manager to enter the file management section.
To enter this page.
Well, we now enter the test folder and as you can see here we have a whole file and folder.
Once we have decided to convert them all to a file, to do this we first select all of them using the select all tool and now there are two ways to compress them:
- The first way is to click on the compress button from the top left.
- And the second way is to right-click on the files and click on a compress.
Compress files with a variety of formats in the C Panel
Well, as you can see, the compressed window opens for us, and the first is written Compression Type, which means that you select the compression format you want to compress the files, and there are four types of formats that we will introduce their use:
- Zip Archive: .zip is one of the most popular data archiving formats, a zip file may consist of compressing a large number of files and directories, and the zip format is one of the best compression algorithms that can be run in Windows We also usually use zip format to compress our files inside the host.
- Tag Archive: .tar is another format for archiving information, and a tar file may be the result of a large number of files and directories being compressed. It is considered Unix and this format is usually used to back up files inside Linux.
- GZiped Tar Archive: .gziped is one of the file compression formats inside Linux that can compress very large files to take up less space inside the host, in fact the gziped format to end the use of the format .gz and built-in replacement with gz.
- Bzip2ed Tar Archive: .bzip2 is one of the open source formats for data compression and it is used only for compressing single files and has different versions.
Well, now that we want to compress our file so that it can be opened inside our computer Windows, so we choose the zip format for this,
The interesting thing is that here we can also change the final path of the compressed file, note that in the routing inside Linux hosts / is used, so because we created a folder called files in the public_html path and we want to compress the file to Move there, then after the public_html slash, we remove the test phrase and write files to it.