Not logged in. · Lost password · Register
Forum: General Discussion Plugins RSS
Backup Plugin Problems
kerchi #1
Member for 2 months · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: Backup Plugin Problems
Even though I have been using dokuwiki for a couple of years now, I never really thought about backing it up other than just ftp-ing the whole site to my computer.. This takes forever as there are literally thousands of files.

I have read through some of the posts but nothing was really helping so my apologies if there is help elsewhere (I know how some people get annoyed at repeat or incorrectly placed posts.

I tried using the backup plugin, which installed successfully, but it doesn't seem to work...at all. I guess I am one of the unlucky ones as others have been far more successful then me. I'd really like this tool to work but all I get is the following which means nothing to me  :huh: :

The backup tool is working, please wait...

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 119

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 120

Archiving smileys.conf...

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 124

Archiving Pages...

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 129

Archiving Media files...

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 144

Archiving Wiki/ACL/User Config...

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 149

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 150

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 151

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 152

Archiving Templates...

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 157

Archiving Plugins...

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 162

Compressing archive...

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 168

Warning: shell_exec() has been disabled for security reasons in /home/fhlinux170/k/kerchi.co.uk/user/htdocs/lib/plugins/backup/ admin.php on line 169

Backup complete!


The link doesn't even link to anything! There is just nothing there.

Does anyone know what this means and if it can be rectified? No complicated terminology please because I know very little about how my wiki works as I only use the front end.

Any help is very much appreciated

Many thanks  :-)
awagner #2
Member since Nov 2007 · 14 posts
Group memberships: Members
Show profile · Link to this post
Quote by kerchi on 2008-06-30, 17:05:
Does anyone know what this means and if it can be rectified? No complicated terminology please because I know very little about how my wiki works as I only use the front end.

As far as I understand, the backup plugin currently tries to run several commands (rm, tar, bzip2, mv) provided by the servers' operating system. On many systems, the program that does the webserving (php) is not allowed to access/run such commands (only the administrator of the comp. may) for security reasons.

The solution would be to have the backup plugin use some of php's own functions (so that php doesn't need to call external tools) like these. Unfortunately I have not got the knowledge to do it quickly and not got the time to dig me through it by trial and error.

On the other hand, maybe dokuwiki/inc/TarLib.class.php would be a good place to start when considering modifying the backup plugin. I've just come across that, dunno if it makes sense.
This post was edited on 2008-07-03, 12:44 by awagner.
Avatar
chi (Moderator) #3
Member since Jun 2006 · 775 posts · Location: Munich Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
Quote by awagner:
The solution would be to have the backup plugin use some of php's own functions (so that php doesn't need to call external tools) like these. Unfortunately I have not got the knowledge to do it quickly and not got the time to dig me through it by trial and error.

On the other hand, maybe dokuwiki/inc/TarLib.class.php would be a good place to start when considering modifying the backup plugin. I've just come across that, dunno if it makes sense.

That's correct. DokuWiki offers all needed libs to zip/tar.gz archives, so there shouldn't be the need to call external programs from within the plugin. As you said, shell_exec() is often disabled by most hosters for security reasons. On the other hand, the author of the plugin notes on his website that this plugin doesn't work with the latest DokuWiki version.
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
kerchi #4
Member for 2 months · 5 posts
Group memberships: Members
Show profile · Link to this post
awagner and Chi,

Thanks for your replies. Having spoken to a friend who has a great deal more understanding than I, the best course of action, for me anyhow, is not to over complicate the situation by simply backing up using ftp. I don't want to have any security issues and I certainly don't the understanding involved to start playing around with code...far too daunting for me, haven't got the right capacity for it up here  :nuts:  

For now I've done a complete ftp download of my site and will update my downloads once every week of the data folder only, omitting old revisions, meta and cache files. It will do for now.

Cheers
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 1.6.4, © 2003-7 by Yves Goergen
Current time: 2008-08-21, 21:21:21 (UTC +02:00)
WikiForumIRCBugsTranslate