Extension:DataDump/pl
![]() Status wydania: stabilne |
|
---|---|
Realizacja | Bazy danych , Strona specjalna |
Opis | Provides the Special page to generate/delete/download dumps |
Opiekun(owie) | Miraheze system administrators |
Ostatnia wersja | continuous updates |
MediaWiki | 1.36.0+ |
PHP | 7.2+ |
Zmiany w bazie danych | Tak |
Composer | miraheze/datadump |
Tabele | data_dump |
Licencja | GNU General Public License 3.0 or later |
Pobieranie | GitHub: Uwaga: |
|
|
|
|
Public wikis using | 163 (Ranked 433rd) |
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
- Download i umieść plik(i) w katalogu o nazwie
DataDump
w swoim kataloguextensions/
. - Dodaj poniższy kod na dole twojego pliku
LocalSettings.php
:wfLoadExtension( 'DataDump' );
- Uruchom skrypt aktualizujący, który automatycznie stworzy potrzebne tabele dla tego rozszerzenia.
- Configure as required.
Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Configuration
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.
Zobacz też
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. |