Difference between revisions of "Mediawiki backup"
From Tech
Jump to navigationJump to search(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
D=`date --iso-8601` |
D=`date --iso-8601` |
||
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- |
+ | 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 .