Extension:DataDump/hi

From mediawiki.org
This page is a translated version of the page Extension:DataDump and the translation is 18% complete.
मीडियाविकि एक्सटेंशन मैन्युअल
OOjs UI icon advanced-invert.svg
DataDump
प्रकाशन की स्थिति: स्थिर
कार्यान्वयन डेटाबेस , विशेष पृष्ठ
विवरण Provides the Special page to generate/delete/download dumps
अनुरक्षक Miraheze system administrators
नवीनतम संस्करण continuous updates
MediaWiki 1.36.0+
PHP 7.2+
डेटाबेस बदलता है हाँ
Composer miraheze/datadump
टेबल data_dump
लाइसेंस GNU साधारण सार्वजनिक लाइसेंस 3.0 या उसके बाद
डाउनलोड करें

  • $wgDataDump

  • view-dump
  • view-image-dump
  • generate-dump
  • delete-dump

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.

स्थापित

  • फाइलों को Download और अपने extensions/ फोल्डर के DataDump नामक डिरेक्ट्री में डालें।
  • अपनी LocalSettings.php के नीचे निम्नलिखित कोड जोड़ें:
    wfLoadExtension( 'DataDump' );
    
  • अद्यतन स्क्रिप्ट चलाएँ जो स्वचालित रूप से आवश्यक डेटाबेस टेबल्स का निर्माण करेगा जिसकी इस एक्सटेंशन को आवश्यकता है।
  • Configure as required.
  • Yes पूर्ण – अपने विकि पर Special:Version पर जाकर देखें कि एक्सटेंशन को सफलतापूर्वक स्थापित किया गया है कि नहीं।

विन्यास

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)

उदाहरण

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.

यह भी देखें