backup page using ?action=backup

http://meta-studies.net/pmg/?n=Admin.BackupThings?action=backup

Documentation is at http://nicolas.raibaut.free.fr/wiki/Nico/BackupPmWiki

--- The backup_pmwiki.txt script (rename it to php) adds an "?action=backup" which can be used to backup all the useful directories (and subdirectories). You can configure the directory where to place backups, set up the backup format and if you want, at the end of creation of backup file, show a link to download it. This script is inspired from Backup Pages?, but saves all directories mentioned at Backup And Restore? (and not only wiki.d). It also fixes several bugs mentioned at Backup Pages?. Backup directory might be created by hand and given 777 rights. The variable redefining the backup directory can be set before the script inclusion, as well as other parameters (see script). It is better that this script is set only for a dedicated page, and so, the include set in a file associated to this page like

 /local/Admin.Backup Wiki?.php

This file may content something like :

  <?php if (!defined('Pm Wiki')) exit();
  $BackupDir = '/mybackupdirectory/';   defaults to '/backup/'
  // other parameters : see backup_pmwiki.php
  include_once('cookbook/backup_pmwiki.php');
  ?>

Restrictions This backup page can be read protected though ?action=backup is still possible on a read protected page. A cryptic name for the page and directory can help protection, or back_pmwiki.php can be edited to use an action name different from backup. Anyone can download the backup archive file if they know or can guess its URL.

See also Backup Pages? (original script) Modified Backup Pages? script, adds ability to e-mail backup archive Backup And Restore? Restore Pm Wiki?


Page last modified on April 24, 2014, at 03:22 AM