Using the following script to backup a database (not all, just one of them).
#!/usr/bin/php
<?php
$file = "/home/southel2/public_html/archives/BACKUPS/backup.sql";
$backupFile = $dbname.date("Y-m-d-H-i-s").".zip";
$command = "mysqldump user=###_### --password=### --databases=###_### > $file";
system($command);
?>
Getting this error in cron email:
Content-type: text/html; charset=UTF-8
Warning: mysqldump: ignoring option '--databases' due to invalid value 'southel2_archives'
mysqldump: Got error: 1045: Access denied for user 'southel2'@'localhost' (using password: YES) when trying to connect
No entries added to the error log.
Any advise?