Im trying to setup a cron script using an online tutorial located here: backuphowto.info/how-backup-mysql-database-automatically-linux-users
The instuction state that you should put the script into /var/crontab but this folder doesn't exsist in Sentora?
However there is a crontob folder located in /var/spool/cron/crontab/www-data
I tried adding a customised version of the following script to www-data but this does not work.
15 2 * * * root mysqldump -u root -pPASSWORD --all-databases | gzip > /mnt/disk2/database_`data '+%m-%d-%Y'`.sql.gz
Is there a way I can use this script or must I go about it a diffrent way to backup mysql databases?
Thanks
The instuction state that you should put the script into /var/crontab but this folder doesn't exsist in Sentora?
However there is a crontob folder located in /var/spool/cron/crontab/www-data
I tried adding a customised version of the following script to www-data but this does not work.
15 2 * * * root mysqldump -u root -pPASSWORD --all-databases | gzip > /mnt/disk2/database_`data '+%m-%d-%Y'`.sql.gz
Is there a way I can use this script or must I go about it a diffrent way to backup mysql databases?
Thanks