Get the Best WordPress Backup
& Migration Plugin Today
Get Duplicator Now

Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Working With Different Archive Engines

The differences lie in the underlying technologies and methods used for compressing and archiving files. Shell Zip leverages system commands, ZipArchive is a PHP class for zip file manipulation, and DupArchive is a custom engine developed for the Duplicator Pro plugin, catering to its specific needs. The choice of engine can impact factors like speed, compatibility, and functionality within the context of the application using them.

Difference Between Each Archive Engine

Shell Zip

Shell Zip utilizes the PHP shell_exec command to access your server’s zip executable and create the package in zip format. This method is often quicker and more reliable than using PHP ZipArchive. If this option is available on your system and you encounter no issues, we suggest selecting Shell Zip.

Note: If Shell Zip is disabled on your server, reach out to your host or server administrator to enable the PHP shell_exec.

Shell Zip is accessible with Basic and higher license levels only.

ZipArchive

ZipArchive is a PHP class that allows manipulation of Zip archives. It provides a programming interface for creating and extracting zip files directly within PHP scripts. ZipArchive is more portable across different server configurations since it operates at the PHP level, ensuring consistency in zip file creation regardless of the underlying operating system.

DupArchive

DupArchive is a file format that generates an [archive.daf] file, unique to Duplicator Pro. Specifically tailored for Duplicator Pro, this format prioritizes performance and scalability. Budget hosting providers often impose strict timeouts, CPU, and I/O constraints on their servers. DupArchive was crafted to overcome these limitations, enabling users to create larger packages without being hindered by server constraints.

Managing ZipArchive

To create archives, Duplicator needs the ZipArchive class installed. However, it’s not required for package installation. Below are instructions to set up ZipArchive in your site if it’s not already installed.

You can easily validate the installation of ZipArchive by checking with phpinfo. These settings can be viewed by navigating to Duplicator Pro » Tools » General » PHPinfo.

Scroll to Configure Command and check if the –enable-zip is enabled:

Note: If you don’t see ‘–enable-zip‘ enabled in the Configure Command, reach out to your host or server administrator.

Frequently Asked Questions

If Duplicator fails despite host confirmation, what should I do?
Ensure your host is checking the correct version, as there are various ways to perform Zip compression in PHP. Ask them to visit this link for instructions on enabling the Zip Archive class. Note that this extension is typically enabled by default on most major hosting platforms.
Check if Zip extensions are enabled on your computer?
On your computer, ensure that the Zip extensions are enabled for PHP. Check your php.ini file for: On Windows: extension=php_zip.dll
On Mac and Linux: extension=zip.so
Additional References
PC (XAMPP, WampServer, etc) resources:
PHP manual | XAMPP Forums | WampServer Forums | Google Search
Mac (MAMP) resources:
PHP manual | MAMP Forums | Article 1 | Thread 1Thread 2

Also see: How do I do a ‘Manual Extraction’ or run installer without Zip enabled?

Was this article helpful?

Related Articles