• Resolved peraburek

    (@peraburek)


    Hello,

    I have VPS running Ubuntu 14.04.6 LTS
    I am using latest WordPress 5.1.1 and UpdraftPlus Version: 1.16.9

    backups (to zip files) are very slow, because UpdraftPlus is not detecting UPDRAFTPLUS_ZIP_EXECUTABLE in /usr/bin/zip

    I have even added this line to wp-config.php
    define(‘UPDRAFTPLUS_ZIP_EXECUTABLE’, ‘/usr/bin/zip’);

    however in UpdraftPlus – Advanced Tools it is still
    ZipArchive::addFile: Yes
    zip executable found: No

    can you please advise how to get UPDRAFTPLUS_ZIP_EXECUTABLE working

    executing “/usr/bin/zip -v” I get this message
    This is Zip 3.0 (July 5th 2008), by Info-ZIP

    is there some other zip preferred for UPDRAFTPLUS ?

    Thank you,
    Regards,
    Peter

    • This topic was modified 5 years, 11 months ago by peraburek.
    • This topic was modified 5 years, 11 months ago by peraburek.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    /usr/bin/zip will be looked at by default. So presumably there’s some reason it can’t be used. There should be more information in the backup log about the attempt to try it. For example, perhaps it’s blocked by the server’s AppArmor policy.

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Do you have php-zip installed? It’s the fall-back if *neither* of those are installed (PclZip) that’s the really slow one.

    Edit: yes, you do. (ZipArchive::addFile: Yes).

    Thread Starter peraburek

    (@peraburek)

    Hi David, thank you for your answer!

    Is there any (measurable) performance difference between php-zip and using zip executable?

    I am using VPS with SSD, so it is not shared hosting, however I am backing up 20 GB website to the VPS itself (another folder)

    20GB web has a lot of files in media library, so I would like to find fastest option

    if you could add experimental option (add files to zip archives but don’t compress files) so that should be fastest possible solution, disk space is not the issue, it is backup speed

    or maybe you have some other idea or suggestion?

    Thank you for your time and effort!

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Normally the zip executable is a bit faster (last time I did some testing, anyway), but you’ll use more memory because it’s a separate process. The difference is nothing like as dramatic as the difference between PclZip and ZipArchive.

    if you could add experimental option (add files to zip archives but don’t compress files)

    It’s already the case that any files with common extensions indicating that the file is already compressed (images, movies, archives), won’t have any extra attempts to compress them; that code has been there for several years.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘UPDRAFTPLUS_ZIP_EXECUTABLE’ is closed to new replies.