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
Hello,
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: Fri Aug 09 23:10:11 GMT 2024

Total time taken to generate the page: 0.02828 seconds