資料來源:http://codex.wordpress.org/Backup_WPMU
#! /bin/sh
DATE=`date | tr " " _`
echo $DATE
mysqldump wordpress --add-drop-table -h localhost -u wpdbuser -pyourpasswd | gzip > db.$DATE.gz
tar cvfz code.$DATE.gz
參考網站:
- http://wpmututorials.com/basics/how-to-backup-wpmu/
- http://mu.wordpress.org/forums/tags/backup
- http://codex.wordpress.org/Backing_Up_Your_Database
沒有留言:
張貼留言