Jump to content

Manual talk:Run.php

Add topic
From mediawiki.org
Latest comment: 9 months ago by Samwilson in topic Not understandable

Not understandable

[edit]

I am trying to run dumpBackup.php using the run.php. But I can't get it to work. I need a much more clear description of exactly how to run this through a terminal connection. I've tried running it from the main wiki root directory and from the maintenance directory, but nothing happens.

Here is what I tried, based on the directions given for both scripts: .maintenance/run dumpBackup.php --full --quiet > dump.xml

Trig12 (talk) 21:14, 26 January 2024 (UTC)Reply

@Trig12: You should use the --output option rather than redirecting stdout. For example:
./maintenance/run dumpBackup \
  --full \
  --quiet \
  --wiki mywiki \
  --server https://mywiki.example.org \
  --output=gzip:mywiki-pages.xml.gz
Sam Wilson 02:40, 27 January 2024 (UTC)Reply