• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved MySQL Backup Cron Job - Empty DB File

JohnnyU

Basic Pleskian
I run a backup of my website db every day and it worked fine in Plesk 12
Now i upgraded from Plesk 12 to Onyx and the job still works but the file created is empty

When i run this from the console it works and the db is created with normal sql file size but it doesn't work from Plesk cron - empty file!

Plesk reports that the command ran succesfully, there is no error. For user & pass i use the db connection, different from Plesk user & pass


This is my cron job: mysqldump -u MYUSER -pMYPASS DBNAME > /var/www/vhosts/MYDOMAIN.com/backup/backup_`date +\%d.\%m.\%Y`.sql

Also i tried this: mysqldump -u admin -p`cat /etc/psa/.psa.shadow` DBNAME > /var/www/vhosts/MYDOMAIN.com/backup/db_backup_`date +\%d\%m\%Y`.sql
 
Last edited:
Working with: /usr/bin/mysqldump -u admin -p`cat /etc/psa/.psa.shadow` MYDB > /var/www/vhosts/MYSITE.com/backup/backup_`date +\%d.\%m.\%Y`.sql
 
Back
Top