Corsinvest / cv4pve-barc

Backup And Restore Ceph for Proxmox VE
https://www.cv4pve-tools.com
GNU General Public License v3.0
82 stars 22 forks source link

Housekeeping deletes initial Images #50

Closed KaiFischer closed 4 years ago

KaiFischer commented 4 years ago

After backup a VM with 3 disks, 2 of 3 images was deleted by housekeeping.

eve4pve-barc backup --vmid=all --label='daily' --path=/backup --renew=0d --retain=0d

VM 101 - ======== Start backup VMID 101 ======== ... VM 101 - Export initial '/backup/barc/101/backup3daily/20200212071936cold-storage.vm-101-disk-3.img' VM 101 - Size 8.00 GiB Uncompressed: 8.00 GiB Compressionratio 1:1 VM 101 - Export initial '/backup/barc/101/backup3daily/20200212071936cold-storage.vm-101-disk-1.img' VM 101 - Size 120.00 GiB Uncompressed: 120.00 GiB Compressionratio 1:1 VM 101 - Export initial '/backup/barc/101/backup3daily/20200212071936cold-storage.vm-101-disk-2.img' VM 101 - Size 25.00 GiB Uncompressed: 25.00 GiB Compressionratio 1:1 VM 101 - -------- Copy config -------- VM 101 - -------- Housekeeping -------- VM 101 - Houskeeping deleting: /backup/barc/101/backup3daily/20200212071936cold-storage.vm-101-disk-2.img VM 101 - Houskeeping deleting: /backup/barc/101/backup3daily/20200212071936cold-storage.vm-101-disk-1.img VM 102 - ======== Start backup VMID 102 ========

franklupo commented 4 years ago

Hi, why use --renew=0d --retain=0d?

best regards

KaiFischer commented 4 years ago

Hi,

to keep only one image without diff that i can mount the image without merging the last diff. For history i use ZFS snapshots.

best regards

Am 13.02.2020 um 08:07 schrieb Daniele Corsini notifications@github.com:

Hi, why use --renew=0d --retain=0d?

best regards

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Corsinvest/cv4pve-barc/issues/50?email_source=notifications&email_token=AKPR5UNEO7Q22BXU3X7DSETRCTWT7A5CNFSM4KTUL6WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELTUYJI#issuecomment-585583653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPR5UKDG5KLKRY4VZ6PSDDRCTWT7ANCNFSM4KTUL6WA.

lephisto commented 4 years ago

I could make sure that the last remaining image is not deleted.

Thinking about that..

lephisto commented 4 years ago

I added the option to use --renew=0 --retain=1 to make full every time and keep one.