OpenVZ Forum

Home » General » Support » vzctl exec cron not working (vzctl exec cron not working)
vzctl exec cron not working [message #51408] Sat, 10 May 2014 01:14
luckyb is currently offline  luckyb
Messages: 1
Registered: May 2014
Junior Member
From: *
I am trying to run below command via host node crontab but its not working in crontab. while its working perfectly, running manually via shell.

vzctl exec2 1 "cd /root/mysqlbackup && mysqldump -u username -h mydbhost -ppassword dbname | gzip -9 > mysql_`date +%Y%m%d_%H%M%S`.sql.gz" >/dev/null 2>&1

please suggest me if I am doing something wrong or if their is some other method to do this automatic backup but from host node cronjob.
Thank you
Previous Topic: ploop backup question - exclude delta file
Next Topic: iptables NFQUEUE - dumpcap (wireshark) connection doesn't work
Goto Forum:

Current Time: Mon Nov 19 12:13:34 GMT 2018