|
Cookbook /
PageAtticSummary: How to store backup files of deleted pages in a separate directory
Version: 2011-10-26
Prerequisites: Last tested on PmWiki version: pmwiki-2.2.26
Status:
Maintainer: floozy
Categories: Administration, CustomPageStore
Discussion: PageAttic-Talk
QuestionThe wiki.d/ directory can get crowded if many pages are deleted, especially in conjunction with the ExpireDiff recipe. How to store the backup files of deleted pages in a separate directory? Answer
include_once('cookbook/pageattic.php');
$WikiDir = new AtticPageStore($WikiDir->dirfmt);
NotesThe location of the attic directory can be controlled by setting the $AtticDir = 'wiki.trash'; The directory is relative to the location containing the main pmwiki.php script, and should be specified without any trailing slash. Contributors
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |