Admin.BackupThings History

Hide minor edits - Show changes to output - Cancel

April 24, 2014, at 03:22 AM by 124.170.39.56 -
Added line 7:
---
April 24, 2014, at 03:21 AM by 124.170.39.56 -
Changed line 3 from:
http://meta-studies.net/pmg/index.php?n=Admin.BackupThings?action=backup
to:
http://meta-studies.net/pmg/?n=Admin.BackupThings?action=backup
April 23, 2014, at 12:35 PM by 124.170.39.56 -
Changed line 3 from:
http://meta-studies.net/pmwiki/pmwiki.php?n=Admin.BackupThings?action=backup
to:
http://meta-studies.net/pmg/index.php?n=Admin.BackupThings?action=backup
April 23, 2014, at 11:50 AM by 124.170.39.56 -
Added lines 1-28:
backup page using ?action=backup

http://meta-studies.net/pmwiki/pmwiki.php?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 BackupPages, but saves all directories mentioned at BackupAndRestore (and not only wiki.d).
It also fixes several bugs mentioned at BackupPages.
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.BackupWiki.php
This file may content something like :
  <?php if (!defined('PmWiki')) 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
BackupPages (original script)
Modified BackupPages script, adds ability to e-mail backup archive
BackupAndRestore
RestorePmWiki


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