proxmox/pve-zsync

Feature Request: All VMs/CTs

Closed this issue · 1 comments

Hi!
Would be nice if there were somehow an easy way to add all VMs/CTs from source to a sync job

This would be scriptable already, e.g. if jq is installed (apt install jq), e.g., you could use something like:

#!/bin/bash

pvesh get /cluster/resources --type vm --output-format json \
  | jq '.[].vmid' \
  | xargs -I{} echo pve-zsync create --dest my.destination.example.com --source {} --other-options ...

To create a zsync CRON entry for all VMs through xargs.

If you want more control you could also loop directly in bash:

for vmid in $(pvesh get /cluster/resources --type vm --output-format json | jq '.[].vmid'); do
  pve-zsync create --dest my.destination.example.com --source  $vmid --other-options ...
done

Please also note that the GitHub repos are read-only mirrors, we neither develop nor handle bug reports here at all –
they just exist to avoid name-squatting.

For future feature requests and bug reports please use our Bugzilla instance: https://bugzilla.proxmox.com/