The only time you will see an error message is if something goes wrong during the creation of the ZIP file, as long as it happens before the server times out the script.
TIP: Try clearing your cache. I noticed that this can cause a problem, especially if you've recently made a backup with a previous version of the backup module.
Can you tell me:
1) How much time goes by before the browser stops waiting for the ZIP file to start downloading?
2) How big your WebsiteBaker installation is in Megabytes?
3) How much disk space do you have available?
4) Is your implementation of Website Baker on Windows or Unix/Linix?
5) Have you tried a different web browser?
6) Check in the root of your web space. Are there any ZIP files there?
The latest version of the Backup module was created on WebsiteBaker 2.8.1 and have tested it on both Windows and Unix, with both Internet Explorer 7 & 8 as well as Firefox 3.6.3. Although there could be something wrong with the code, the problem is likely at the server end.
There are so many different server configurations possible that it is only possible to test all scenarios with help from people like you. I really appreciate your assisance and feedback.
In the end, I may or may not be able to resolve this issue however I would like to try with your help.
As I mentioned in my previous posts, the file backups are limited by three conditions which are often controlled by your web space provider: time, memory and hard disk space.
- Time: Most host providers place a limite on how long a script can run. If your files are on a slow or busy server, you have a very large number of files, or you have very big files, the script may not finish creating the ZIP file within the allocated time. The script attempts to override this and give itself 2 minutes however your provider can override this.
- Memory: It is my undertsanding that The PclZip library ZIP's a file into memory. Your host provider also has the ability to limit the amount of available memory to the script.
- Disk space: Your provider also has the ability to limit how much disk space is available to you. On average you will need about 50% of the space used by your website for the ZIP file. If you have compressed files available for download or viewing, you might need more space.
Remember: The file backup option makes a backup of everything in and under the home directory of your WebsiteBaker installation, not just the files directly relating to WebsiteBaker. If you made files available for download like audio, video or other large files, or you have other web software installed in the same folder as Website Baker, all of this will be included in the ZIP file.
Unfortunately I am not sure there is a way to check for all of these conditions beforehand. Even if there were, the only thing I could do would be to remove the option if the server did not meet a minimum requirement.
In testing on my web host's server, it took about 25 seconds to create a 550 MB ZIP file. When debugging the code, I once accidently created a 2 GB file which seemed to take about 3-4 times as long. I was just about to give up when my browser finally prompted me for a file name. A typical browser will wait up to about 5 minutes for the file to start downloading before it times out.
Hope you found some of this helpful.
With warmest regards,
did a quick test.
Backup of db is working fine.
Backup of all files ends with a white page and no error message (though level is E_ALL_STRICT).