Start und Ahrensburg.city:Tools: Unterschied zwischen den Seiten

Aus ahrensburg.city
(Unterschied zwischen Seiten)
Zur Navigation springen Zur Suche springen
// via Wikitext Extension for VSCode
 
 
Zeile 1: Zeile 1:
== Willkommen auf der Testseite ==
== Tools ==
===GH Installieren===
<pre>
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
</pew>


Hier kannst du testen, wie du eine Seite bearbeiten kannst.
=== Backup für MediaWiki erstellen ===
 
<pre>
sudo gh repo clone thorstenkloehn/Download
cd /var/www
php /var/www/mediawiki/maintenance/dumpBackup.php --full > /var/www/Download/pagedump.xml
 
</pre>
 
=== Backup für MediaWiki wiederherstellen ===
 
<pre>
php importDump.php < pagedump.xml
</pre>
==== Weblink ====
* [https://www.mediawiki.org/wiki/Manual:DumpBackup.php Manual:DumpBackup.php]

Version vom 8. August 2024, 12:32 Uhr

Tools

GH Installieren

(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
</pew>

=== Backup für MediaWiki erstellen ===

<pre>
sudo gh repo clone thorstenkloehn/Download
cd /var/www
php /var/www/mediawiki/maintenance/dumpBackup.php --full > /var/www/Download/pagedump.xml

Backup für MediaWiki wiederherstellen

php importDump.php < pagedump.xml

Weblink