HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   ISPConfig backup : corrupted zip file (http://www.howtoforge.com/forums/showthread.php?t=26000)

DrJohn 13th August 2008 04:48

ISPConfig backup : corrupted zip file
 
Using ISPConfig 2.2.23, Ubuntu server 8.04, all functions well, EXCEPT, running Tools, Backup, Download chosen, and selecting one or all sites in the Admin panel plus the default Web Data, User Data, and MySQL Database, after about a minute wait I get only 211 bytes in the resulting zip and the zip cannot be opened: "The compessed (zipped) file is invalid or corrupted." The target PC is Windows XP Pro or Ubuntu 8.04 desktop (same result on both) thru Firefox 3.0.1.

Choosing instead Management, BackupData, Download, I get a zip file with what appears to be a valid MySQLDump .SQL backup of the configuration database.

So, any ideas on what might be wrong with the web backups?

Thanks,

D.J.

till 13th August 2008 10:10

I guess that the size of the site is too big for the browser based backup function. Either you activate the automatic daily backup which is run on the shell in the config.inc.php file or you run a custom backup script.

Doug G 14th August 2008 06:40

Take a look at the 211-byte zip file with a text editor, it probably is complaining about insufficient php memory allocation. I had to increase the max memory in php.ini on my testing server.

DrJohn 3rd September 2008 04:52

That's absolutely correct, Doug: the zip is html with this content:

Code:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 363653928 bytes) in /home/admispconfig/ispconfig/web/tools/tools/backup/backup.php on line 157
php.ini has a 128M memory limit (as you can see).

I already run a cron-based backup script for one of the sites, but now with quite a few more sites now it makes more sense (I think) to use the built-in capability, so I've enabled it in config.inc.php, see here: http://howtoforge.org/forums/showthread.php?t=12063. Now we'll see how it works tonight.

-- DJ

till 3rd September 2008 10:25

You should set the memory limit to a higher value in /root/ispconfig/php/php.ini and then restart ispconfig.

DrJohn 4th September 2008 02:47

Thanks Til,

I doubled the mem limit to 256M. The automated backup ran fine overnight.

Another question: does the automated backup not also perform the equivalent function of Management, ISPConfig Database, Backup data?

If so, where is this information stored by the automated backup? If not, how to automate this too?

Thanks,

DJ


All times are GMT +2. The time now is 06:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.