DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:zip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:zip [2008-07-14 12:51] – 404 error 213.60.210.42plugin:zip [2023-12-17 00:21] (current) – new download url Aleksandr
Line 1: Line 1:
 +====== Zip Plugin ======
 +
 +---- plugin ----
 +description: Backup to and restore from a zip file of wiki contents
 +author     : Andrew Pilsch
 +email      : oncomouse@gmail.com
 +type       : admin
 +lastupdate : 2006-06-01
 +compatible : !Igor
 +depends    : 
 +conflicts 
 +similar    : backup
 +tags       : maintenance, backup, archive
 +
 +downloadurl: https://trello.com/1/cards/5d50434dfe312e30a96a8d96/attachments/5d5044ab13ec3e5a75eaf35e/download/doku-zip-pear-0.4.zip
 +bugtracker : 
 +sourcerepo : 
 +donationurl: 
 +
 +screenshot_img: 
 +----
 +
 +===== Warning! =====
 +
 +^  :!: This plugin could break your dokuwiki! :!:  ^
 +|  See: [[https://forum.dokuwiki.org/d/20719-admin-page-corrupted | Admin Page corrupted]]   |
 +
 +===== Download =====
 +
 +//The Download-Button in the formular refers to the second link.//
 +
 +  * [[https://trello.com/1/cards/5d50434dfe312e30a96a8d96/attachments/5d5044ab762be8282569a92c/download/doku-zip-0.4.zip|Doku Zip Backup without PEAR libraries]]
 +  * [[https://trello.com/1/cards/5d50434dfe312e30a96a8d96/attachments/5d5044ab13ec3e5a75eaf35e/download/doku-zip-pear-0.4.zip|Doku Zip Backup with PEAR libraries]]
 +  * [[https://trello.com/1/cards/5d50434dfe312e30a96a8d96/attachments/5d5044aa92d7bb32babb4943/download/doku-data.zip|Raw Doku data dir schema. Useful for restoring lost wiki data]]
 +
 +===== Introduction =====
 +
 +This plugin saves a doku wiki as a zip file that contains ''changes.log'', ''pages/'', and, ''attic/'' from the directory pointed to by ''%%$conf["savedir"]%%''. In addition to the ability to save zip backups, this plugin also allows for the restoration of lost data from such an archive.
 +
 +Make sure to check the [[plugin:zip#caveats_things_that_don_t_work|caveat]] section before installing, as there are a few problems with this plugin at the moment.
 +
 +===== Requirements =====
 +
 +Doku Zip Backup depends on the [[http://pear.php.net/package/File_Archive|File_Archive]] library from [[http://pear.php.net/|PEAR]] to work. If you do not have the ability to install PEAR libraries (or do not have PEAR installed at all on your webhost), don"t worry, there is a version of Doku Zip Backup that includes all the PEAR libraries needed to run the plugin.
 +
 +
 +===== Installation =====
 +
 +As with any plugin, the zip file containing Doku Zip Backup must be extracted into the lib/plugins directory of your doku install. Depending on the install file (see below) you downloaded, you will have either a directory named zip-standalone or zip-with-pear. Rename that directory to zip in order to maintain standard naming conventions within doku.
 +
 +After having done that, open the file zip/admin.php in your favorite text editor.
 +
 +There are two values you can change:
 +
 +If you are using the standalone version of Doku Zip Backup and the necessary PEAR libraries (see above) are not installed in a system-wide PEAR repository, you may uncomment the following line and set it to the location of the php folder within your personal PEAR repository.
 +
 +<code php>
 +#define('CUSTOM_PEAR', '/home/me/pear/php');
 +</code>
 +
 +Users of the version of Doku Zip Backup that includes the PEAR libraries do not need to change this line.
 +
 +Secondly, if you would like to place the location of where Doku Zip Backup places its temporary files, you may change the line:
 +
 +<code php>
 +define('TMP_DIR', DOKU_PLUGIN.'zip/tmp/');
 +</code>
 +
 +Other than that, there is nothing that needs to be configured.
 +
 +===== Caveats / Things That Don't Work =====
 +
 +  * At the moment, this plugin is incompatible with users who have set ''%%$conf["usegzip"]%%'' to ''1''. This is due more to the horrible documentation of File_Archive than to anything within the plugin itself. Once I figure out how to store compressed files in an archive using the library, this problem should be removed.
 +  * Support for [[http://pear.php.net/package/Cache_Lite|Cache_Lite]] is disabled, as it does not appear to work in the current version of File_Archive. It's possible that I may be doing something wrong here, but it seems that when filling the cache, File_Archive does not actually compress the data (it may also be returning a tar file of some sort). Upon subsequent cache hits, the resulting zip file is perfectly fine (which seems to be undesirable).
 +  * Restoring from backup seems to destroy timestamps for last edit data. I have not yet verified this.
 +  * Software only has English localization.
  

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki