Exclude groups in sync

volker

Renowned Member
Sep 9, 2015
7
0
66
Hello everyone.

Is there a way to exclude certain groups (VMs/CTs) from a sync job?

I'm syncing to an usb HD. And while my PBS instance keeps a lot of backups I only want some of them in the usb storage. Can this be expressed using Group Filter?

Best Regards/Viele Grüße
....Volker
 
Did you see the group filters?:
If the group-filter option is set, only backup groups matching at least one of the specified criteria are synced. The available criteria are:

  • backup type, for example to only sync groups of the ct(Container) type:
    # proxmox-backup-manager sync-job update ID --group-filter type:ct

  • full group identifier
    # proxmox-backup-manager sync-job update ID --group-filter group:vm/100

  • regular expression matched against the full group identifier
https://pbs.proxmox.com/docs/managing-remotes.html#sync-jobs
 
Seems like exclusion is not supported...
wanted to use "vm/(?!762\b)\d+" to exclude vm/762


Code:
parameter verification errors

group-filter: regex parse error: vm/(?!762\b)\d+ ^^^ error: look-around, including look-ahead and look-behind, is not supported
 
I also would like to exclude a single containers backup from sync. In my case, the container is ct/104

Can someone help me with the regex to exclud ONLY this group, but back up all else, ie include all else vms/cts/hosts?

I can't see how to do it withot look-around, look-ahead and look-behind - which is not supported..