I had to change host servers this week, so I emailed myself a full backup of my site. Once the new location was active, I installed WP and attempted to decrypt the backup using the upload function.
The file was too big for the host server’s quota, so i created the path suggested by Online Backup and uploaded the file using FTP.
I still cannot decrypt the file, and I’m getting the error message:
[function.opendir]: failed to open dir: No such file or directory.
I changed the permissions for the backup file itself to 777, thinking this might help, but it hasn’t.
Thanks for any help you can give me.
I tried to decrypt the backup so I could get all my data into my blog on the new site, by following these steps:
- created the path
- logged into wp-admin
- went to Tools/Online Backup to access the plugin
- clicked on the Decrypt tab
- clicked on the Browser button to upload through the web browser and located my backup file on my hard drive
- entered my Encryption key
- clicked on the Decrypt Backup button
However, I then got this message:
Your web server is configured with an upload file size limit of 2 MiB. If your backup file is larger than this, you should upload your file via FTP as described below.
So, I created the folder just as instructed below:
The folder that encrypted files can be uploaded to via FTP could not be accessed. You may need to create it yourself: /hermes/bosweb/web139/b1396/ipg.25reasonsnet/wp-content/plugins/wponlinebackup/tmp/decrypt.
Then I uploaded my .enc file into the decrypt folder through FTP, and tried again. I then got this error message:
The error was: An error happened at: admin.php(1183) opendir(/hermes/bosweb/web139/b1396/ipg.25reasonsnet/wp-content/plugins/wponlinebackup/tmp/decrypt) [function.opendir]: failed to open dir: No such file or directory.
OK, now, silly me! I finally understand the instructions given in the plugin. Sorry folks, I’m a self-taught dunderhead 😉
Anyway, I’ve now got the plugin recognizing the ENC file in the right place, so it shows up for me to select on the Decrypt Backup page. However, I cannot get it to decrypt. It gives the following error message:
The backup could not be decrypted; the encryption details specified were incorrect.
I have the right Encryption type (AES 128 – as recommended), and I have the right Encryption Key.
What else should I be doing to get the file to decrypt? If you could please tell me, I’ll be forever indebted. My website has been down for 2 days now, and I’m losing sleep. Not really, just want my site up and running again.
Double check you entered the key right. If copying and pasting type it manually instead. It is case-sensitive too so make sure the case is correct.
If you let me know which version of the plugin you are decrypting with, and which version of the plugin created the backup file, I can check there wasn’t an issue with it but I believe if you are using the latest version to decrypt there aren’t any issues.
I know that the Encryption Key I’m using is accurate. The version of the plugin is 2.2.0, which I’m pretty sure was the same version the backup was made with. I keep all my plugins up to date, so I’m sure it was the latest.
Thanks for your help with this.
There is no issue with a backup generated by 2.2.0 being decrypted by 2.2.0. If it says the key is incorrect it must be incorrect. I just tested it today again for you to make sure.
If the backup was made with an older version I know there has been changes in newer versions in the encryption/decryption to make it faster or more secure. This has all been tested though so the chances of it being an issue there are very slim but I can test it again if need be.
Do you still have access to the original site with the encryption key entered? You could login and check the key is correct.
You could also try changing the AES type and see if it was actually encrypted with a different one.
I know for sure that the encryption key I’m using is correct. I don’t have access to the WP site, I just have access to the site through cPanel. I’ve downloaded the whole database now, since I’m convinced I won’t be able to get the backup restored through this plugin, which is very disappointing. However, I am having difficulty restoring the site from the sql file, since it’s 20.7MB
I’m not sure what to do now, and I don’t know who to ask for help.
a) if your only suggestion is that the key is wrong, them I’m in trouble, because I know I have the right key, so it means I can forget about Online Backup for WP as an access to restoring my website
b) the new host company can’t assist me with WordPress, it’s outside of their support offerings
c) I don’t understand SQL sufficiently, so I can’t do much there, and so far, my host company has supported me in importing the large SQL file, but my website and admin login site show up as blank pages.
I don’t know what to do, or who to ask for help. The blog is a personal one, so I don’t feel justified in paying the $75 per hour that professional support will cost me, and I’m just really stuck.
If there is anything you can offer me in terms of what to try next, I’d really appreciate it.
Thanks so much,
The plugin simply reads a cryptographic hash of the password inside the file, and compares this to what you entered. If these do not match then the key used to encrypt the backup is different in some way to the one entered to decrypt. This is the only way for this to happen. Extensive testing goes into the encryption/decryption code and I’ve tested it again for you and the only time it says the key is wrong is when the key actually is wrong.
If you took the database from the old site and imported into new site it should work fine and not show blank page. It might be you need the files as well as the database for the restore to work – maybe WordPress is trying to load something that isn’t there because you didn’t restore files. If you still have FTP access to old site you can transfer all the files and see if it then starts working – but do not overwrite the wp-config.php file on your new server (download it somewhere just in case you overwrite it) as this will have the database details for your new server and you want to keep these.
If you want you could ZIP the SQL file and send it to support “at” backup-technology “dot” co “dot” uk and I can look at the file when I have some time and see if it is a valid WordPress backup, and might be able to recover your encryption key from it so you can decrypt the full backup you had from the plugin.
I’ve just sent you an email with the zipped ENC file. Sorry, I think I wrote “Hi Driskell”. I just now saw your name is Jason 🙂
I’m not sure how to restore the files now. I went back into the cPanel on the old host and did a Backup from there of the Home Directory. I’m not sure what to do with that now.
I’m worried that the new host site will end up with things uploaded and placed in parts that will make it all a big mess.
I’ll wait to hear from you after you’ve had some time to look at my email. Thanks again, I can’t tell you how reassuring it is to have you work with me on this.
I meant for you to send me the database download you took from cPanel. The encrypted file is of no use to me as it is encrypted so there’s no way I can read it without the key unless you sent that also, but that key seems to be incorrect when you try decrypting.
If you extract that backup of the Home directory from the old site, look for the folder containing wp-config.php.
Go to the new site on FTP and upload everything except wp-config.php to your new site, in the same place where wp-config.php is on there when you installed WordPress again.
- The topic ‘[Plugin: Online Backup for WordPress] can't decrypt backup, function.opendir failed to open’ is closed to new replies.