Support

Admin Tools

#9679 Backup Verification

Posted in ‘Admin Tools for Joomla! 4 & 5’
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

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Thursday, 24 February 2011 15:32 CST

pjdevries
A backup is worthless if one can not be sure it is o.k. and I know so by experience :( Most backup tools have ways of verifying backups automatically after it has been created. I haven't found such a feature in Akeeba Backup. Did I miss something or isn't it available yet?

Because I use Remote a lot, it would be cool if it had some kind of verification option as well, so that once a backup hase been created and transferred, Remote checks to see if it's o.k.

Something for the next version perhaps?

steph.s
Hi pjdevries,
Do you mean a package scanner after backup has been created? Because Akeeba automatically logs errors, warnings and notices in the backup log and on screen when you preform the backup. there is more documentation here.

pjdevries
I'm not sure what you mean by "package scanner". The least that should be done, is check if the backup archive is o.k. and can be unpacked error free. If some kind of checksum is added, Remote can use that to check if the archive was transferred error free.

nicholas
Akeeba Staff
Manager
Verifying just the integrity of the backup archive itself means really nothing. You can have a perfectly valid backup archive which misses a lot of files because they were unreadable, therefore this is not a good way to test the backup. The best way to test a backup is trying to perform a test restoration on a local or development web server. This is something which can not be performed automatically in a generalized manner.

My standard recommendation —as you can see in the Quick Start Guide— is to install a copy of Zend Server Community Edition with PHP 5.2 on your local machine and try a test restoration of your backup archive. You don't have to do that all the time, though. It's adequate to do that at least every time you upgrade anything on your site (Akeeba Backup itself, the Joomla! core, an extension) or when your host upgrades Apache, MySQL or PHP. You may also want to do a test restoration once a month to make sure that you are familiar with the procedure in case of an emergency.

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!

user31513
@Nicholas

I made a backup for my joomla site with Akeeba Backup extension and i saved the backup in my computer. My problem is how to test the backup. I installed as you suggested Zend Server Community Edition with PHP 5.2 but i am blocked in how to test it. It s the first time i used a virtual server.
Is there anything to help me please??

nicholas
Akeeba Staff
Manager
Testing the backup is the same thing as restoring it. First, create a directory in your server's root, for example name it "test". Place your backup archive in there. Then download Kickstart from our Download section, extract the ZIP archive and place the extracted files (kickstart.php and all of the .ini files) alongside the archive. Then, all you have to do is to access Kickstart as http://localhost/test/kickstart.php. The only thing you have to take care of is supplying the local database's connection details in the Restore DB step of the restoration process.

The outline of the procedure is included in our Quick Start Guide and in our video tutorials.

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!

user31513
Thanks for your reply

I tried to follow the video tutorials step by step and every time i try to extract files using kickstart.php i recieved an error message: The archive file is corrupt, truncated or archive parts are missing
I don t know what s missing,
I have another question, to test the backup i understand i just must change the Db with the details from zend server and it will not corrupt my actual website?

nicholas
Akeeba Staff
Manager
Regarding the Kickstart error, how did you download the archive file? If you used the download links in the component, it's highly probable that the archive became corrupted during transfer. In this case, follow the third video tutorial's steps to download the backup archive using FTP in Binary transfer mode. Anything else is not guaranteed to work, due to potential issues with server configuration, third party Joomla! extensions or the usual suspect for causing Internet havoc (goes by the name Internet Explorer).

If all else fails, you can also try using Akeeba eXtract Wizard (free download from our Download section) to extract the archive instead of using Kickstart. After doing that and moving all extracted files to your local server's subdirectory, you can still access the restoration script as http://localhost/yourdirectory/installation/index.php. When the restoration is over, do as the restoration script prompts you and remove the installation directory (it was included in the files you copied).

At this point, I strongly suggest you to read our Quick Start Guide during your first site restoration. It will slow you down having to read it, but -trust me- will save you from lots of trouble. All the tricks and quirks I am aware of are written in there.

Regarding your other question, yes, you have to supply your local database's connection information. If you leave your live servers information, one of two things will happen:
1. Most likely, the restoration of the database will fail with a connection error.
2. On very rare cases, it might corrupt your live site's database. This can only happen if your live host doesn't use "localhost" as the database host name and the on-line database server allows remote connection to it. The chance of this happening is extremely small, but it's worth noting it.

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!