ayufan / pve-patches

Repository with public Proxmox patches
223 stars 54 forks source link

Full backup every X don't work #48

Closed vdeville closed 4 years ago

vdeville commented 4 years ago

Hello Thanks for your tool, i install on proxmox 6.1.8, no problem to patch. The first backup is process as full, this is fine. But the parameter --fullbackup is not applied.

My command : vzdump 103 --mode snapshot --compress lzo --storage local --fullbackup 4

After multiple exec of the command, only the first full backup is present all others is diff.

Files:

/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz
/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz--differential-2020_04_29-09_33_12.vcdiff
/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz--differential-2020_04_29-09_36_29.vcdiff
/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz--differential-2020_04_29-09_43_25.dat
/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz--differential-2020_04_29-09_48_08.vcdiff
/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz--differential-2020_04_29-09_50_22.vcdiff
/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz--differential-2020_04_29-09_51_59.vcdiff
/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz--differential-2020_04_29-09_54_16.vcdiff
/var/lib/vz/dump/vzdump-qemu-103-2020_04_29-09_26_56.vma.gz--differential-2020_04_29-09_56_57.vcdiff

Do you have an idea of what is wrong ?

Thanks

ayufan commented 4 years ago

This works fine. The fullbackup indicates how many full backups can be persisted. The differentials are controlled by amount of days of keeping them before a new full backup is created.

vdeville commented 4 years ago

Hello I will retry in the next days, in the past this comportement doesn't work. Thanks

vdeville commented 4 years ago

Hello @ayufan Just tested today with theses settings and create more than the max backup set, and always make differential.

Capture d’écran 2020-06-01 à 14 11 12 Capture d’écran 2020-06-01 à 14 11 37 Capture d’écran 2020-06-01 à 14 11 51

Thanks

vakartel commented 4 years ago

Because it count not backup-instances but days