Making backups

From TermWiki
Jump to: navigation, search
  • mysqldump -u userid -p dbname | gzip > backup-$(date +%Y-%m-%d).sql.gz
  • tar jcf ~/mediawiki-$(date +%Y-%m-%d).tar.bz2 /var/www/html/termwiki