found 0 groups to sync when adding a remote sync job

layer7.net

Member
Oct 5, 2021
41
3
13
23
Hi,

using Backup Server 2.2-1

This is the sync-job:

Code:
proxmox-backup-manager sync-job list
┌─────────────────┬───────────────────────────────┬───────────────┬─────────────────┬──────────┬──────────────┬─────────┬─────────┐
│ id              │ store                         │ remote        │ remote-store    │ schedule │ group-filter │ rate-in │ comment │
╞═════════════════╪═══════════════════════════════╪═══════════════╪═════════════════╪══════════╪══════════════╪═════════╪═════════╡
│ s-03e28156-35a3 │ backup01-fra1-mc1-fra1-z40000 │ backup01-fra2 │ mc1-fra1-z40000 │ hourly   │ all          │         │         │
└─────────────────┴───────────────────────────────┴───────────────┴─────────────────┴──────────┴──────────────┴─────────┴─────────┘

When i am executing the job it says:

Code:
2022-10-14T18:23:57+02:00: Starting datastore sync job 'backup01-fra2:mc1-fra1-z40000:backup01-fra1-mc1-fra1-z40000::s-03e28156-35a3'
2022-10-14T18:23:57+02:00: sync datastore 'backup01-fra1-mc1-fra1-z40000' from 'backup01-fra2/mc1-fra1-z40000'
2022-10-14T18:23:57+02:00: ----
2022-10-14T18:23:57+02:00: Syncing datastore mc1-fra1-z40000, root namespace into datastore backup01-fra1-mc1-fra1-z40000, root namespace
2022-10-14T18:23:57+02:00: found 0 groups to sync
2022-10-14T18:23:57+02:00: Finished syncing namespace , current progress: 0 groups, 0 snapshots
2022-10-14T18:23:57+02:00: sync job 'backup01-fra2:mc1-fra1-z40000:backup01-fra1-mc1-fra1-z40000::s-03e28156-35a3' end
2022-10-14T18:23:57+02:00: TASK OK


Code:
cat /etc/proxmox-backup/sync.cfg
sync: s-03e28156-35a3
    ns
    owner root@pam
    remote backup01-fra2
    remote-ns
    remote-store mc1-fra1-z40000
    remove-vanished true
    schedule hourly
    store backup01-fra1-mc1-fra1-z40000


Local Owner is root@pam ( should have enough rights for what ever i guess )
Source Remote user has this rights:

Datastore.Backup on /datastore/mc1-fra1-z40000
and
Remote.Audit, Remote.Modify, Remote.Read on /remote

Just for testing i gave the Source Remote user Admin rights on /

So i guess its not a permission problem here. And if so, would be nice if the software could tell so....

------------

The general goal is to simply mirror all backups from the source datastore to the local datastore.

Any help is highly appriciated. Thank you!
 
Last edited:
just to rule out permission issues, can you post the following file from the source (the remote) ?
Code:
/etc/proxmox-backup/acl.cfg
?

what happens when you try to list the snapshots via cli on the target pbs with
Code:
proxmox-backup-client snapshot list --repository <repository>
? (see https://pbs.proxmox.com/docs/backup-client.html for details how the repository should look like)
 
I had a similar issue, but I resolved it by using the same account as the one that is making the backups. For me, the problem was that the new user did not have ownership of the created backup. I wonder if there is a way to make it work, without giving a user too many rights (such as Admin on \)
 
  • Like
Reactions: amengus
Same here

Code:
root@pbs1:~# proxmox-backup-manager remote list
┌─────────┬──────────────────────────┬──────────┬──────────────────┬─────────────────────────────┐
│ name    │ host                     │ auth-id  │ fingerprint      │ comment                     │
╞═════════╪══════════════════════════╪══════════╪══════════════════╪═════════════════════════════╡
│ pbs2    │ pbs2.mydomain            │ root@pam │ 3f:aa:bb:cc:...  │ test replication sauvegarde │
└─────────┴──────────────────────────┴──────────┴──────────────────┴─────────────────────────────┘
root@pbs1:~# proxmox-backup-manager datastore list
┌───────────────┬──────────────────────────────────┬─────────┐
│ name          │ path                             │ comment │
╞═══════════════╪══════════════════════════════════╪═════════╡
│ backup_px     │ /mnt/datastore/backup_mgt/px     │         │
└───────────────┴──────────────────────────────────┴─────────┘
root@pbs2:~# proxmox-backup-manager datastore list
┌───────────────┬──────────────────────────────────────┬─────────┐
│ name          │ path                                 │ comment │
╞═══════════════╪══════════════════════════════════════╪═════════╡
│ backup_px2    │ /mnt/datastore/local_mgt/px2         │         │
├───────────────┼──────────────────────────────────────┼─────────┤
│ copy_px1      │ /mnt/datastore/local_mgt/copy_px1    │         │
└───────────────┴──────────────────────────────────────┴─────────┘

root@pbs2:~# proxmox-backup-client snapshot list --repository copy_px1
Password for "root@pam": ****************
storing login ticket failed: $XDG_RUNTIME_DIR must be set
I think i found the pb when understanding the "pull" fonction

Code:
root@pbs1:~# proxmox-backup-manager pull pbs2 copy_px1 backup_px
pull datastore 'backup_px' from 'pbs8999/copy_px1'
----
Syncing datastore 'copy_px1', root namespace into datastore 'backup_px', root namespace
found 0 groups to sync
Finished syncing namespace , current progress: 0 groups, 0 snapshots
pull datastore 'backup_pxadm2' end
TASK OK
I have to pull backups from pbs1.. so I must configure remote in the other way..
 
Last edited:

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!