Kubernetes mysql backup

Kubernetes mysql backup script was working fine in manually , but enable the scheduling empty backup file only created , How to resolve this ?

kubectl exec mysql-0 -n kube-qa – mysqldump -u root --password=root123! --all-databases --single-transaction --quick --lock-tables=false | gzip > /home/ec2-user/backups/mysql/backups/$(date +%Y%m%d%H%M%S).sql.gz

Hello yogesh,

Check this useful document to schedule backup Backup MySQL Databases in Kubernetes - DEV Community

Thanks,
KodeKloud Support