I had a dedicated server with Plesk 11.0.9, I scheduled a database backup cron-job to performed daily backup, below is the commands:
I received an email's notification stated with:
I tried logon as root user in SSH console to run the same command, the backup file was created successful, I don't know what's issue to run scheduled task in Plesk is so headaches compared with cPanel, I've been spent whole day to figured out but seems no lucks.
Can someone expert please do me a favour?
Thanks.
Code:
mysqldump -u admin -p`cat /etc/psa/.psa.shadow` database1 > /var/backups/db_backup_`date +\%Y\%m\%d\%H\%M\%S`.sql
I received an email's notification stated with:
Code:
cat: /etc/psa/.psa.shadow: No such file or directory
-: date: command not found
-: date: command not found
-: /var/backups/db_backup_.sql: No such file or directory
I tried logon as root user in SSH console to run the same command, the backup file was created successful, I don't know what's issue to run scheduled task in Plesk is so headaches compared with cPanel, I've been spent whole day to figured out but seems no lucks.
Can someone expert please do me a favour?
Thanks.