Dump database in Plesk Linux

To dump the content of a MySQL database in an .sql file you can run the following code:

mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` DATABASENAME > FILE_NAME.sql

You can copy that code to the spool to automate this process.