Difference between revisions of "Mediawiki backup"
From Tech
Jump to navigationJump to searchLine 4: | Line 4: | ||
mysqldump -u wikiuser -p --default-character-set=utf8 wikitech |gzip > backup-wikitech-sql-$D.sql.gz |
mysqldump -u wikiuser -p --default-character-set=utf8 wikitech |gzip > backup-wikitech-sql-$D.sql.gz |
||
sudo tar -czf backup-wikitech-files-$D.tar.gz /var/lib/mediawiki/ /etc/mediawiki* |
sudo tar -czf backup-wikitech-files-$D.tar.gz /var/lib/mediawiki/ /etc/mediawiki* |
||
+ | sudo cp backup-wikitech-* ~/big/backup/ |
||
+ | |||
+ | ssh pi3 |
||
+ | cd backup |
||
+ | rsync -vaz pomo:big/backup . |
Latest revision as of 10:43, 18 August 2020
Backing up the contents of this wiki using: (see also mediawiki backing up a wiki)
D=`date --iso-8601` mysqldump -u wikiuser -p --default-character-set=utf8 wikitech |gzip > backup-wikitech-sql-$D.sql.gz sudo tar -czf backup-wikitech-files-$D.tar.gz /var/lib/mediawiki/ /etc/mediawiki* sudo cp backup-wikitech-* ~/big/backup/
ssh pi3 cd backup rsync -vaz pomo:big/backup .