Page 1 of 1

Maybe a little problem in Backup Plug-in

Posted: Wed Oct 19, 2005 6:47 pm
by gnubit
I made both backup sql and html.

The first was stored in a *.tar file and i cand download it from the interface, the second was stored in a *.tar.gz file and can be downloaded.

Can be a problem of the server? Other *.tar.gz files can be downloaded.

Posted: Wed Oct 19, 2005 11:32 pm
by dma147
where is the problem?

Posted: Thu Oct 20, 2005 8:28 am
by Guest
If i click over the link of the html backup in tar.gz nothing happens.

Can't download it.

The link of the sql backup works perfectly.

Posted: Thu Oct 20, 2005 8:42 am
by Guest
I tryed to look at some error in the variable, but all is ok.

I tryed to rename it, maybe some error with file extension, but the problem stil remain the same.

Posted: Thu Oct 20, 2005 2:07 pm
by dma147
hmm... works great here and on other blogs...

Have you tried to open the download-link in a new window/tab?
Are there any errors appearing?

Posted: Thu Oct 20, 2005 4:17 pm
by Guest
An empty page.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title></title></head><body></body></html>
This is the code of it.

Posted: Thu Oct 20, 2005 4:26 pm
by garvinhicking
Hm, such empty pages can happen if your PHP process was killed or had a segfault. Can you check your Apache and PHP errorlog?

Maybe you hit a memory limit while the PHP process delivers a file; how large is the file you'Re trying to download?

Regards,
Garvin

Posted: Thu Oct 20, 2005 7:07 pm
by gnubit
Right, he he.

The file is only 13,5Mb but exausted the memory limit.

Ther is a way to bypass this problem, maybe splitting the file?

Posted: Fri Oct 21, 2005 11:32 am
by dma147
yeah sure... you can split the file.
Or you can try to add a function call to the download-routine of the downloadmanager (the external_plugin event at line ~2016).
This function call has to look like this:

Code: Select all

$upload_max_filesize = ini_get('upload_max_filesize');
@ini_set('memory_limit', $upload_max_filesize);
Note: this has to be enabled by your php.ini. Normally it is enabled, but some providers disables such function-calls.
Simply try it out.

Posted: Wed Jan 04, 2006 3:15 am
by PerfectCr
Sorry to bump an old thread. For SQL backup, should I check all 3 options?
With drop table
gzipped
Whole database

Also, when I click HTML backup, there is nothing to download, nothing happens. Is there supposed to be some kind of output?
I just get three messages on top:
Automatic HTML backupping stopped
Automatic HTML deletion stopped
Actual HTML backup saved

Can anyone shed some light on this? Thanks!

Posted: Wed Jan 04, 2006 1:09 pm
by dma147
You should really learn to use the searchfunction of this forum. ;)

if you want to be able to rewrite the backup into your database again without problems, then you should check all three options. yes.

To get the html backup working, your php-configuration has to be allowed to use POSIX functions (like exec(), passthru(), and so on).
Because it uses exec() to call backup.sh, which then makes the backup of the files. if your php isn't allowed to use exec(), there is no chance to get it working except your provider changes to configuration for you.

Posted: Wed Jan 04, 2006 2:47 pm
by PerfectCr
dma147 wrote:You should really learn to use the searchfunction of this forum. ;)
Ummm, I did use the search function, that is how I found this thread!

dma147 wrote:To get the html backup working, your php-configuration has to be allowed to use POSIX functions (like exec(), passthru(), and so on).
Because it uses exec() to call backup.sh, which then makes the backup of the files. if your php isn't allowed to use exec(), there is no chance to get it working except your provider changes to configuration for you.
GoDaddy.com is my hosting provider, what exactly do I need to ask for then? Is an HTML backup useful if I have the database?

Posted: Fri Jan 06, 2006 9:50 am
by dma147
Ask him if you're allowed to use the function "exec()" with your php configuration. And if your're not allowed to use this function, ask him if he can change that so that you're allowed to use this function.

To your second question... well, if you only have a backup of your database, you'll still not have a backup of the files on your webserver, right? So yes, you have to backup both to be really sure not to loose any data if there happens some faults on the server.

Posted: Fri Jan 06, 2006 3:35 pm
by PerfectCr
Thanks, I will ask godaddy today.

Posted: Fri Jan 06, 2006 4:56 pm
by PerfectCr
They cannot do it, here is what they say...
Unfortunately not. Due to the fact that our shared hosting servers house many customer websites, opening the EXEC() function would open up a large security hole that could be used to exploit other customer accounts and/or the server itself.