Mediawiki: Difference between revisions

 
(6 intermediate revisions by the same user not shown)
Line 54:
 
== Using Script ==
 
=== Installation ===
 
mysqldump -u root -ppwd@123 my_wiki | gzip > /home/aman/Backup/my_wiki-$(date +"%d-%b-%Y").sql.gz
Line 88 ⟶ 90:
sudo logrotate /etc/logrotate.conf --debug --force
 
=== Restoring From Backup ===
 
Restore Images
Line 107 ⟶ 109:
poetry update && poetry install && poetry build
pip3 install --force-reinstall dist/*.whl
 
If you are getting an error for dependancies:
pip3 install lxml==4.9.4
sudo apt install libxml2-dev libxslt-dev python3-dev
 
Generate Backup:
dumpgenerator --xml --xmlrevisionsimages --imagesapi https://aman.awiki.org/w/api.php --index https://aman.awiki.org/w/index.php --bypass-cdn-image-compression https://WIKINAMEaman.mirahezeawiki.org
 
 
Restoring Backup: