I am trying to backup my MySQL 8 database with the command line below but I got an error message.
How to make the backup ?
ubuntu@www-example-com ~ $ mysqldump -u root -p www_example_com > /var/www/www-example-com/share/www-example-com_$(date +%F).sql
-bash: /var/www/www-example-com/share/www-example-com_$(date +%F).sql: Permission denied