Support

UNiTE, Remote CLI, eXtract Wizard

#30096 Is there a way to use the ExtractWizard on command line on a windws system?

Posted in ‘UNiTE and Remote CLI’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
Tool
UNiTE
Tool version
n/a

Latest post by nicholas on Friday, 24 August 2018 01:06 CDT

seoBOXX
Is there a way to use the ExtractWizard on command line on a windws system? I use the pro version on some sites and some of my customers use the WP version as well. I wrote a FTP Auto Downloader für the stuff to bring this to my NAS every evening and i would like to integrate the ExtractWizard on command line to check that the download is valid.

Is that possible?

Regards,
Andreas

nicholas
Akeeba Staff
Manager
The installation package includes two tools, Akeeba eXtract Wizard and Extract CLI. See https://github.com/akeeba/nativexplatform/wiki

You may need to add the installation folder to your path. The installation folder is detailed in https://github.com/akeeba/nativexplatform/wiki/Installation-and-uninstallation

Then you can run Extract CLI with:

extractCLI c:\path\to\archive.jpa c:\path\to\extract\into [-p JpsPassword] [--test]

The things in brackets are optional parameters. Since you only want to test the archive you could do

extractCLI c:\path\to\archive.jpa %temp% --test

or if you have a JPS file

extractCLI c:\path\to\archive.jps %temp% -p YourJPSPassword --test

The %temp% is a Windows shorthand which always points to the Windows temp folder. We are using it as our extraction target because the tool requires an extraction target folder even if nothing is extracted.

The --test option makes sure that nothing is, in fact, extracted to disk. extractCLI will go through the entire process of reading the file, decompressing the files etc but the extracted data will be discarded. Moreover, if the extraction fails it will return the command line error level to 250.

Yes, my use case writing this tool was similar to yours. I wanted to make sure that the archives I am generating with the backup engine can be extracted by both Kickstart and eXtract Wizard. So I wrote CLI interfaces to both which allowed me to automate my tests.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!