Advertisement
Guest User

.my.cnf

a guest
Jan 11th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. vi ~/.my.cnf
  2. [mysqldump]
  3. user = root
  4. password =
  5. chmod 600 ~/.my.cnf
  6. crontab -e
  7. 0 0 * * * mysqldump -u root -h localhost --all-databases | gzip -9 > alldb.sql.gz > /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement