jeff5656 Posted April 12, 2012 Share Posted April 12, 2012 In cpanel I have this command in a cron job: mysqldump --user=myusername --password=mypassword--databases mydatabase > /home/mydirectory/sql_backups/DUMPFILE.SQL The file is zero bytes. Is the above command wrong? Unfortunately with a cron job, you don't get an error when it's run so I don't get any feedback about what I may have done wrong. Link to comment https://forums.phpfreaks.com/topic/260793-help-with-mysqldump/ Share on other sites More sharing options...
Muddy_Funster Posted April 12, 2012 Share Posted April 12, 2012 mysqldump --user=myusername --password=mypassword mydatabase > /home/mydirectory/sql_backups/DUMPFILE.SQL should work. Link to comment https://forums.phpfreaks.com/topic/260793-help-with-mysqldump/#findComment-1336637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.