Support

Site Restoration

#20399 Automatic restore

Posted in ‘Site restoration’
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
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by nicholas on Thursday, 10 July 2014 07:16 CDT

user84795
 Hello,

I need an automatic restore script from JPS for a test server. I have read UNiTE documentation which is exactly what I need. But on page 2 it states:

>>JPS (secure backup archives) are currently not supported.

Not good for me. How can I still automatically restore via a scheduled script? I tried Akkeba Extract wizard but it has no command line.

Thank you,
Michael

nicholas
Akeeba Staff
Manager
Kickstart's automatic restoration has been deprecated two years ago and no longer supported with the ANGIE installer. Please use Akeeba UNiTE instead.

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!

user84795
Understood but this is not my question. I am asking about UNite ..is JPS now supported from UNite?

nicholas
Akeeba Staff
Manager
Oh, I see. No, JPS archives are not supported as there is no way to provide the archive's password. I'll make a few changes for the next version of UNiTE. Would you be interested in testing this feature when it's ready, before the official release?

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!

nicholas
Akeeba Staff
Manager
I had some time today and worked on that feature. You can download the latest dev release from https://www.akeebabackup.com/download/developer-releases/unite-dev.html

In your XML file, inside the siteInfo tag you need to add a new tag:
<jpspassword><![CDAT[YOURPASSWORD]]></jpspassword>

where YOURPASSWORD is your JPS encryption password.

I have tested it successfully. If you have 5 minutes to spare, please give it a go and let me know of your results.

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!

user84795
Hi Nicholas,

thank you for the quick enhancement - sorry it took me some time to test it.

So far, no luck, it gives an exception with error: Fatal error: Class 'AKUnarchiverS">' not found in C:\wamp\www\UNITE\engine\extras\restore.php on line 5104

Please see attached screenshot for the full command.

Additional info:
  • running on windows server 2008R2 with wamp installed
    site.jps file is in the /inbox dir.
    I use latest wamp with php path added to system to C:\wamp\bin\php\php5.5.12
    to execute - command is php.exe c:\wamp\www\UNITE\unite.php. I could not find a cli version.


Please let me know how to proceed.
Thanks,
Michael



nicholas
Akeeba Staff
Manager
According to their site, WAMP only provides PHP 5.5 these days. Can you please give me the exact PHP version you are using, e.g. 5.3.24? It is very important.

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!

user84795
PHP vsion is 5.5.12.

This is also described on latest wamp http://www.wampserver.com/en/

nicholas
Akeeba Staff
Manager
I installed a fresh copy of the latest WAMPserver (downloaded today) on Windows 8.1. I took a backup in JPS format with Akeeba Backup 3.11.2 and used the latest dev release of UNiTE to extract it. No problem at all.

Based on your error message I believe that the problem is that you have entered the wrong JPS password in your XML file.

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!

user84795
Hi Nicholas,
My password is correct - I used Akkeba extractor to verify my password and that was ok.

I added also pathes to these directories where this class faild. No joy. Is it correct to start the script as follows in a command prompt??:

c:\wamp\www\UNITE>php.exe C:\wamp\www\UNITE\unite.php

Looking at the error message it seems not to find a class which is
$engine = AKFactory::getUnarchiver($overrides);

Sorry, my understanding of PHP is rather basic so I cannot help with this advanced issue. What I can offer you is a free Cisco webex session to this machine to see for yourself. Can you help? We are GMT +10 hours, I am available uo to 2.00pm CET. Send me an email to my account's address and we can do it ad-hoc.

All I need is a way to extract the JPS from the command line script. Pity, the AKEEBA extractor cannot be run from command line.

Thank you,
Michael

nicholas
Akeeba Staff
Manager
Hello Michael,

What strikes me as most peculiar is the class name in the error message. Sure enough, the AKUnarchiver part is all right. But the following three letters and characters seem to be garbage. As you saw yourself, the $overrides can't hold garbage unless something is woefully wrong in PHP. Then again, I spent half the day yesterday installing a fresh copy of Windows 8.1 and reproducing your environment as closely as possible and I couldn't reproduce the issue.

Frankly, I am out of ideas :(

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!

user84795
I figured it out - there was a quote in the unite.xml which lead to this error: it was:

<package>site.jps"></package>

after correcting this ALL IS GOOD and the restore worked nicely.

Apologies for my mistake. It would be good to do some user input validation.

Thank you for you help Nicholas and again apologies for that silly mistake. Pleas close the case.
Michael

nicholas
Akeeba Staff
Manager
Hm, the strange part is not the input validation, it's why PHP accepted to parse an XML file with a greater-than sign in the tag's contents. That file should have resulted in an unparseable XML file and an instant error :s

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!