View Single Post
  #8 (permalink)  
Old Jan 9th, 2006, 03:54
SweetLou SweetLou is offline
Junior Member
Join Date: Dec 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Automatic Backups

With cron you can run any command that you could from the shell. So, you could run a command like the one above or you could run a command that runs a script, so that script can do even more.
You might want to change the mysql command a bit. I generally use
Code: Select all
mysqldump --add-drop-table -u {username} -p {database name} > {directory file name}
I like this better because I think it makes it easier to restore.
Reply With Quote