Difference between revisions of "Dumping Seluruh Database MediaWiki"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
− | Untuk dumping seluruh database MediaWiki seperti Situs SpeedyWiki | + | Untuk dumping seluruh database [[MediaWiki]] seperti Situs [http://opensource.telkomspeedy.com/wiki/ SpeedyWiki] |
# /usr/bin/mysqldump -u wikiuser -pwikipasswd wikidatabase -c | /bin/gzip -9 > /data/orari/datawiki/wikidb.sql.gz | # /usr/bin/mysqldump -u wikiuser -pwikipasswd wikidatabase -c | /bin/gzip -9 > /data/orari/datawiki/wikidb.sql.gz | ||
Line 10: | Line 10: | ||
* beri permission agar dapat di execute script tersebut (chmod +x namascript.sh) | * beri permission agar dapat di execute script tersebut (chmod +x namascript.sh) | ||
* edit 'crontab -e' masukan agar script di execute secara periodik | * edit 'crontab -e' masukan agar script di execute secara periodik | ||
+ | |||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[Linux Howto]] |
Revision as of 09:37, 27 April 2008
Untuk dumping seluruh database MediaWiki seperti Situs SpeedyWiki
# /usr/bin/mysqldump -u wikiuser -pwikipasswd wikidatabase -c | /bin/gzip -9 > /data/orari/datawiki/wikidb.sql.gz # tar czf /folder/data/datawiki/images.tar.gz /var/www/html/wiki/images
Agar dapat dilakukan secara periodik
- masukan perintah di atas dalam script
- beri permission agar dapat di execute script tersebut (chmod +x namascript.sh)
- edit 'crontab -e' masukan agar script di execute secara periodik