I am not using Wordpress, I have PHP websites, 4 subdomains, all are php, now i want to take the backup automatically using CRON to my gmail. but i failed everytime. it gives error of password, but the password is correct.
As you can see in the error “Enter password”, mysqldump is asking for the password because you are using -p yourpassword instead of -pyourpassword, you should remove the space or use --password=yourpassword
Edit: I forgot to say that you can dump the db using hestiacp command v-dump-database command and there is no need to write the password in the command:
Usage: v-dump-database USER DATABASE
Using your example::
v-dump-database naeem4440 naeem4440_demo1 | mail -s “Database Backup” [email protected]