PBS : host backup, mount points and pruning problem

corriou

New Member
Mar 11, 2021
6
0
1
52
Hello,

Here's my problem :
I have an NFS server with 2 disks: system disk (mounted as /) and data disk (mounted as /export).

By default, PBS saves the two disks separately which would be fine for me (and this is what I would prefer). In my crontab, I put :
proxmox-backup-client backup root.pxar:/ proxmox-backup-client backup export.pxar:/export/
Both of them are saved (and appear) in the same datastore/host.

To avoid overloading, they're scheduled at different times.

My problem is with the pruning : PBS will delete the old backups as if they were all from the same disk.

Am I missing some point ? Is it done on purpose ?

Thank you for your answers and this wonderful tool.
 
pruning only looks at the snapshots, not the content, and you are making 'different' snapshots right after another
this is not really the 'recommended' way to backup since you lose the checking of chunks from the snapshot before
(since this now does never overlap)

i'd suggest giving both dirs simultaniously:

proxmox-backup-client backup root.pxar:/ export.pxar:/export/
and use the schedule that triggers less often

or alternatively, use a different backup-id for both
e.g.

proxmox-backup-client backup --backup-id host1-root root.pxar:/
proxmox-backup-client backup --backup-id host1-export export.pxar:/export/

that way you have two snaphot histories that get correctly pruned and benefit from the chunk upload check
 
Thank you for your answer.
pruning only looks at the snapshots, not the content, and you are making 'different' snapshots right after another
this is not really the 'recommended' way to backup since you lose the checking of chunks from the snapshot before
(since this now does never overlap)

Indeed it does make sense.

i'd suggest giving both dirs simultaniously:

proxmox-backup-client backup root.pxar:/ export.pxar:/export/
and use the schedule that triggers less often

or alternatively, use a different backup-id for both
e.g.

proxmox-backup-client backup --backup-id host1-root root.pxar:/
proxmox-backup-client backup --backup-id host1-export export.pxar:/export/

that way you have two snaphot histories that get correctly pruned and benefit from the chunk upload check
At first, I tried the second approach but i eventually used the "--all-file-systems" option since it wasn't so important to dissociate both backups.
Thanks again.