vzdump maxfiles problem

rusty333

Active Member
Jan 22, 2018
3
0
41
31
Hello,

im having trouble with number of dump files. I have custom script for making daily(3), weekly(1) and monthly(1) backups. But im getting daily(4), weekly(2) and monthly(2) backups. Here is my script and vzdump.cron
Is there a logical problem with my configuration which i dont see? I found nothing wrong in logs.
There is over 100VM, backups are starting at 10:45PM and running aprox to 5:00AM. But im assuming that maxfile mechanism is basicaly counting number of files and does not depend on timestamp.

proxmox-ve: 6.2-2 (running kernel: 5.4.65-1-pve)

Bash:
if [ $(date +%d) = 01 ] && [ $(date +%u) != 1 ]
then
#monthly
vzdump --exclude 100,999 --compress zstd --zstd 0 --dumpdir /xxx/nfs/dump/monthly --maxfiles 1 --mode snapshot
elif [ $(date +%u) = 1 ]
then
#weekly
vzdump --exclude 100,999 --compress zstd --zstd 0 --dumpdir /xxx/nfs/dump/weekly --maxfiles 1 --mode snapshot
else
#daily
vzdump --exclude 100,999 --compress zstd --zstd 0 --dumpdir /xxx/nfs/dump --maxfiles 3 --mode snapshot
fi

Bash:
# cluster wide vzdump cron schedule
# Automatically generated file - do not edit

PATH="/usr/sbin:/usr/bin:/sbin:/bin"

45 22 * * *           root bash /etc/pve/backup_plan
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!