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.
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: