Recent Changes - Search:

Softwares

.

CreatingMySqlBackupUsingCron


  • Backup mysql db using Cron.
    date=`date -I` ; mysqldump -uusername -pthepass .all-databases | gzip >
    /home/linux/mysql_$date.sql.gz 
  • Replace username and thepass with the correct username and the pass.
  • The user need to have access to the database being taken for backup.
Edit - History - Print - Recent Changes - Search
Page last modified on April 24, 2009, at 06:49 PM