Maybe a little problem in Backup Plug-in

Creating and modifying plugins.
Post Reply
gnubit
Regular
Posts: 17
Joined: Thu Aug 25, 2005 3:30 pm
Location: Verona (Italy)
Contact:

Maybe a little problem in Backup Plug-in

Post 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.
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

where is the problem?
Alexander Mieland, dma147
http://blog.linux-stats.org
Guest

Post 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.
Guest

Post 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.
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post 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?
Alexander Mieland, dma147
http://blog.linux-stats.org
Guest

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gnubit
Regular
Posts: 17
Joined: Thu Aug 25, 2005 3:30 pm
Location: Verona (Italy)
Contact:

Post 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?
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post 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.
Alexander Mieland, dma147
http://blog.linux-stats.org
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post 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!
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post 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.
Alexander Mieland, dma147
http://blog.linux-stats.org
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post 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?
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post 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.
Alexander Mieland, dma147
http://blog.linux-stats.org
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

Thanks, I will ask godaddy today.
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post 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.
Post Reply