CypherBYTE
Verified User
- Joined
- May 20, 2020
- Messages
- 10
I am trying to set up an automatic backup for a MySQL database. CentOS 7.
I have a command I can run in SSH that works fine:
I have setup a cron job and it appears to be executed in the cron logs, with no indication of errors, BUT it does appear to be truncated:
Yet, still nothing happens.
I have tried giving full rwx rights (777) to the Admin folder, adding the admin user to the wheel group, even tried un-remming this line in the sudoers file:
Any ideas what I might be missing?
I have a command I can run in SSH that works fine:
Code:
sudo mysqldump -u MySQLUser -pPASSWORD dbname | gzip > Admin/ers_`date '+%Y%m%d-%H%M'`.sql.gz
I have setup a cron job and it appears to be executed in the cron logs, with no indication of errors, BUT it does appear to be truncated:
Code:
May 26 03:39:40 vps crontab[31363]: (root) LIST (admin)
May 26 03:40:01 vps CROND[31388]: (admin) CMD (sudo mysqldump -u admin_ers -pPASSWORD admin_ers | gzip > Admin/ers_`date '+)
May 26 03:40:01 vps CROND[31390]: (root) CMD (/usr/local/directadmin/dataskq)
May 26 03:40:20 vps crontab[31394]: (root) LIST (admin)
May 26 03:41:01 vps CROND[417]: (root) CMD (/usr/local/directadmin/dataskq)
May 26 03:42:01 vps CROND[474]: (root) CMD (/usr/local/directadmin/dataskq)
Yet, still nothing happens.
I have tried giving full rwx rights (777) to the Admin folder, adding the admin user to the wheel group, even tried un-remming this line in the sudoers file:
Code:
%wheel ALL=(ALL) NOPASSWD: ALL
Any ideas what I might be missing?