Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 171654

Cron dumps with files of the same name

$
0
0
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:

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

Has someone an idea on how to solve this?

Best,

Viewing all articles
Browse latest Browse all 171654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>