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..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!