Exclude folders from gabage collection

seechiller

Renowned Member
Jan 5, 2014
18
1
68
Hello

I use proxmox backup server on one of my servers which also holds other backups, created with rsync on the backup pool partition. Because I’ve only 4 usable slots on this server I must use the same zfs storage for all backups. If I now run GC I got an error “TASK ERROR: cannot continue garbage-collection safely, permission denied on: "/mnt/datastore/Backup-Pool/sql/2021_12_22_02_00"”.

How can GC be configured to only work in the folders created by PBS (/ct & /vm)?

I’ve not found anything in the docu, if that is not possible can the PBS storage location be moved to an subfolder like "/mnt/datastore/Backup-Pool/pbs"?

I've found this https://forum.proxmox.com/threads/c...e-collection-safely-permission-denied.111941/ is this the only solution?

Thanks
 
Last edited:
it's not possible to exclude directories - but a datastore is just a directory itself, so yes, you can move it to a sub-directory or new dataset to avoid this conflict.
 
it's not possible to exclude directories - but a datastore is just a directory itself, so yes, you can move it to a sub-directory or new dataset to avoid this conflict.
Jup, in the datastore folder there should be nothing else except the data PBS creates.

Best would be to create ZFS datasets for each use case. For example:
Code:
zfs create YourPool/Datastore
zfs create YourPool/Rsync
So you got a dedicted dataset for PBS and for rsync. You could then move the contents of your datastore to the new dataset and edit the datastore.cfg to match the new path. But make sure to disable all the tasks so the datastore isn't in use while moving the files. Maybe also stop the PBS services to be sure. Same for your rsync files.
 
Last edited:
Thanks for the tip with the datasets, it tooks 15 days to move all the data, now it is clear why SSDs are recommended.