Hi,
I'm creating a cron job to make dumps of OpenVZ CT's. This cron must always export the same name: ex: vzdump-openvz-100.tar.lzo
Currently, this cron works on the terminal when manually launched, but when launched by cron it does not work. I believe that the problem is on the stdout param used on vzdump, but I don't know how to solve this. Here's the script:
Has someone an idea on how to solve this?
Best,
I'm creating a cron job to make dumps of OpenVZ CT's. This cron must always export the same name: ex: vzdump-openvz-100.tar.lzo
Currently, this cron works on the terminal when manually launched, but when launched by cron it does not work. I believe that the problem is on the stdout param used on vzdump, but I don't know how to solve this. Here's the script:
Code:
#backup Containers openvz
rm /backup/dump/vzdump-openvz-100.tar.lzo
vzdump --maxfiles 1 --compress lzo --mode snapshot --storage backup --mailto xxxxx@xxxx.xxx 100 -stdout > /backup/dump/vzdump-openvz-100.tar.lzo
Best,