File compression in cPanel: zip and extract files
Use cPanel File Manager to compress files, extract archives, speed up uploads, avoid overwrites, and understand when SSH archive commands may or may not be a...
On this page
Compression packages many files into one archive. It is useful for downloading a site copy, uploading many small files faster, preparing files, or moving a folder inside cPanel File Manager.
Why compress files?
- Upload one ZIP instead of thousands of small files over FTP.
- Download a folder as a single archive.
- Move or copy a site section more reliably.
- Keep a temporary file snapshot before editing major files.
Compression is not a replacement for full account backups. Use cPanel Backup for account-level backup workflows.
Create an archive
- Open cPanel File Manager.
- Select the files or folders you want to archive.
- Click Compress.
- Choose Zip Archive, Tar Archive, or GZiped Tar Archive if available.
- Choose the destination path and archive name.
- Click Compress File(s).
Extract an archive
- Upload or locate the archive in File Manager.
- Select the archive.
- Click Extract.
- Confirm the extraction path.
- Review the extracted files before deleting the archive.
Avoid mistakes
- Check whether the archive contains a top-level folder before extracting.
- Do not extract over a live website unless you have a backup.
- Delete temporary archives after downloading them because they count toward disk usage.
- Do not leave full site ZIP files publicly accessible under
public_html.
Command-line archive tools (VPS/Dedicated only)
Standard shared hosting does not include SSH access. If you are using a Cloud VPS or Dedicated Server, you can use command-line archive tools which can be faster for large sites. For shared hosting, always use File Manager or FTP.
zip -r site-copy.zip public_html/
unzip site-copy.zip
tar -czf site-copy.tar.gz public_html/
tar -xzf site-copy.tar.gz
Related: FTP and SFTP access: upload files to your cPanel account | cPanel File Manager: upload, edit, organize, and delete files | Disk and bandwidth usage in cPanel: find storage and traffic problems | Backup best practices for web hosting
Need cPanel hosting or licensing?
Use UnderHost cPanel hosting or add cPanel/WHM to a VPS or dedicated server for familiar website, email, DNS, and database management.





















