I'm trying to set up a cron job to automatically back up a mysql database on a web host account.
I have researched the script for mysqldump and I'm under the assumption that what I have should output the insert statements (data) as well as the structure of the DB. All I'm getting in the SQL file output is the structure though.
Here's the script:
Am I missing something?
KizMar
------------
I have researched the script for mysqldump and I'm under the assumption that what I have should output the insert statements (data) as well as the structure of the DB. All I'm getting in the SQL file output is the structure though.
Here's the script:
Code:
#!/bin/sh
[i](the line below is all one line)[/i]
mysqldump --opt -e db_name --password='hidden' --user='hidden' > /home/path/to/file/backup.sql
Am I missing something?
KizMar
------------