Backup Plugin only 1/2 working

Creating and modifying plugins.
Post Reply
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Backup Plugin only 1/2 working

Post by DortoH »

Been using the backup plugin for a while now. The SQL backup works flawlessly, however the HTML backup does nothing.

I have played with the settings and can't get it to backup any HTML. I get the following messages but no backup file.

Automatic HTML backupping started
Automatic HTML deletion started
Actual HTML backup saved

Using serendipity_event_backup-0.2

Any ideas?
Rod
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

which OS are you using on your webserver and which webserver-software?

It should all work as long as it is MySQL used and a linux OS.
Alexander Mieland, dma147
http://blog.linux-stats.org
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Debian 3.0 Serendipity 0.8.3 PHP 4.3.10 Apache 1.3.33

Not sure which version of MySQL.
Rod
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

Well, since this plugin uses exec() for a system-call of backup.sh, this has to be allowed by your provider.
Maybe your PHP is not allowed to use functions like exec(), system(), passthrou() and similar...?
Alexander Mieland, dma147
http://blog.linux-stats.org
DortoH
Regular
Posts: 82
Joined: Fri Feb 25, 2005 2:00 am

Post by DortoH »

Well its not really a big issue for me, I have an ftp script to download everything weekly.

The SQL part works and that is all i really care about.

Great plugin, thanks!!
Rod
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

My backups are perfect if I run them, but I can't get the automatic backups to happen. I believe I have everything selected in the admin panel to run db backups every 12 hours and HTML backups every 24 hours, but neither ever happens.

My server is Linux, Apache is 1.3.34 (Unix), PHP is 4.3.11, MySQL version 4.1.13-standard, and Serendipity is 9.1 (the latest stable release).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hathor, did you check if your system allows exec() calls and so on?

Maybe you can send dma147 a mail, I think he's no longer actively monitoring the forums here.

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

Post by dma147 »

@garvin: Sure I am... ;) ...but I'm quiet busy with christmas... my server is some like broken... and some other stuff...

Well, there's all said. You have to check if your php is allowed to use exec(), because this function is used to run the script backup.sh from your backup-interface.
If you don't know, how to check this, simply ask your provider.
Alexander Mieland, dma147
http://blog.linux-stats.org
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

Host does not allow them because they consider them a security risk.

This is what's happening with every backup script I've used - anything that can automatically backup your stuff can also be used for abuse, and hosts are slowly catching on and disallowing things that the scripts (and spammers and phishers) need. Bummer.

Still, the plugin is awesome for being able to do a quick backup on the fly when I remember to. Much easier than cpanel backups. :)
Post Reply