How to mirror one PBS to another ?

This example only clones specific data-store named 'local'.
i have over 30 data-stores and want to mirror all of them.
How to mirror 1:1 two PBS ?

I created script to get all data-stores on master PBS and recreate them on remote PBS.
The problem - I cant create data-stores remotely with API.


Code:
 proxmox-backup-manager remote create backup-mirror \
    --host xxxxx.sn.mynetname.net \
    --port 8007 \
    --auth-id root@pam \
    --password xxxx \
    --fingerprint "xx:7d:d8:94:83"

# get all data-stores
# proxmox-backup-manager datastore list --output-format json | jq -r '.[].name'

 proxmox-backup-manager sync-job create backup-mirror-store1 \
    --store store1 \
    --remote backup-mirror \
    --remote-store store1 \
    --schedule '02:30' \
    --group-filter regex:'^vm/1\d{2,3}$' \
    --rate-in 20MiB

# cant locate store1 on remote
proxmox-backup-manager sync-job run backup-mirror-store1
 
Last edited:
you can't, you need at least one sync job per datastore (pair).