Extension:DataDump/de-formal
![]() Release status: stable |
|
---|---|
Implementation | Database , Special page |
Description | Provides the Special page to generate/delete/download dumps |
Maintainer(s) | Miraheze system administrators |
Latest version | continuous updates |
MediaWiki | 1.36.0+ |
PHP | 7.2+ |
Database changes | Yes |
Composer | miraheze/data-dump |
Tables | data_dump |
License | GNU General Public License 3.0 or later |
Download | GitHub: Note: |
|
|
|
|
The DataDump extension provides means for users to generate, delete or download their dump without the involvement of sysadmins.
For reporting an issue or a bug, please use Miraheze Phabricator. See here for the workboard.
Installation
- Die Download und die Datei(en) in ein Verzeichnis namens
DataDump
im Ordnerextensions/
ablegen. - Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
wfLoadExtension( 'DataDump' );
- Führen Sie das Aktualisierungsskript aus, welches automatisch die notwendigen Datenbanktabellen erstellt, die diese Erweiterung braucht.
- Configure as required.
Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Konfiguration
parameter | default | comment |
---|---|---|
$wgDataDump
|
[]
|
This config defines how dumps are generated and which types of dumps there are. |
$wgDataDumpInfo
|
""
|
This config defines the information displayed atop Special:DataDump. |
$wgDataDumpLimits
|
["memory": 0, "filesize": 0, "time": 0, "walltime": 0]
|
This config defines resources allocated to running scripts. |
$wgDataDumpDirectory
|
false
|
This config defines the directory where to store the dumps. |
$wgDataDumpFileBackend
|
false
|
This config defines backend to use ($wgFileBackends) |
Example
This is an example on how to setup the configuration. You can tailor it to your specific needs:
$wgDataDumpDirectory = "<path>${wgDBname}/";
$wgDataDump = [
'xml' => [
'file_ending' => '.xml.gz',
'generate' => [
'type' => 'mwscript',
'script' => "$IP/maintenance/dumpBackup.php",
'options' => [
'--full',
'--output',
"gzip:${wgDataDumpDirectory}" . '${filename}',
],
],
'limit' => 1,
'permissions' => [
'view' => 'view-dump',
'generate' => 'generate-dump',
'delete' => 'delete-dump',
],
],
'image' => [
'file_ending' => '.zip',
'generate' => [
'type' => 'script',
'script' => '/usr/bin/zip',
'options' => [
'-r',
'<path>${filename}',
"<path>${wgDBname}/"
],
],
'limit' => 1,
'permissions' => [
'view' => 'view-dump',
'generate' => 'view-image-dump',
'delete' => 'delete-dump',
],
],
];
$wgAvailableRights[] = 'view-dump';
$wgAvailableRights[] = 'view-image-dump';
$wgAvailableRights[] = 'generate-dump';
$wgAvailableRights[] = 'delete-dump';
Note that ${filename}
is replaced internally in the extension so make sure that it is always in a single string not in a double string.
The limit parameter specifies how many dumps can be generated for that wiki.
Siehe auch
![]() | This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
![]() | This extension is made by Miraheze. It may have issues you don't see in Miraheze. To report a bug or request a configuration change, please do so in the Miraheze Phabricator instead of the Wikimedia one. |
Categories:
- Stable extensions/de-formal
- Database extensions/de-formal
- Special page extensions/de-formal
- Extensions supporting Composer/de-formal
- GPL licensed extensions/de-formal
- Extensions in GitHub version control/de-formal
- Extensions which add rights/de-formal
- LoadExtensionSchemaUpdates extensions/de-formal
- All extensions/de-formal
- Extensions included in Miraheze/de-formal
- Extensions included in WikiForge/de-formal
- Extensions included in WikiTide/de-formal
- Extensions by Miraheze/de-formal