m 1 revision imported |
m 1 revision imported |
||
| (One intermediate revision by one other user not shown) | |||
| Line 21: | Line 21: | ||
# Run <tt>llw2lw --doit</tt> (run in dry-mode first, maybe). | # Run <tt>llw2lw --doit</tt> (run in dry-mode first, maybe). | ||
# Use [[Special:Import]] with interwiki prefix <tt>llw</tt>, Assign edits ticked. | # Use [[Special:Import]] with interwiki prefix <tt>llw</tt>, Assign edits ticked. | ||
# Upload files (if any) | # Upload files (if any) with [[Special:BatchUpload]]. | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
llw2lw (local-laussywiki to laussywiki) is a python script to export to our online laussy.org mediawiki web, changes made on my local copy.
A log is kept in ~/comp/lw/llw2lw-log.txt.
laussy@azag:~$ ./llw2lw --help
Usage: ./llw2lw.py [--doit] [--verbose] [--no-export=<title1>,<title2>,...] [--help]
Export recent changes from a local MediaWiki to an XML file and download associated files.
Options:
--doit Write XML file, download files to FilesToUpload/, and update log file.
--verbose Enable debug output to console and llw2lw-debug.log.
--no-export=<titles> Comma-separated list of page/file titles to exclude
(e.g., Test4,Template:Test,File:Screenshot_20250717_222636.png).
Note: Spaces and underscores in titles are interchangeable.
--help Show this help message and exit.
The script prompts for a start date (YYYY-MM-DD). Defaults to the LAST UPDATE date
from ~/comp/lw/llw2lw-log.txt, or yesterday if the log file is missing.