Is it possible to force a sync (more specifically, a push sync) of a snapshot that is older than the currently present one on the remote datastore?
Background:
I f'd up a bit when configuring my onsite PBS instance - I didn't put in "keep latest x" in the prune job, and forgot to mark certain snapshots as protected. So the next time the datastore got prune'd and GC'd it only kept the latest snapshot.
This is a problem, since I wanted to use this particular host group in an unusual way: I used the same host ("archive") to create backups of old, large data exports of different origin - for example "old_fileserver" and "export_websiteX". The data was originally located on a windows machine, so I rsync'd it to a samba share of this temporary "archive" host, created a backup of one fileset via proxmox-backup-client, deleted the fileset on the "archive" host to get enough room for the next fileset, and repeated the process for the next fileset.
Fortunately, I had synced all snapshots to my offsite PBS instance before the "older" snapshots got pruned on the onsite PBS instance. So now I have all datasets only on my offsite PBS, but since I want all my data to be stored sufficiently redundantly, I would like to re-sync the older snapshots to my onsite PBS.
But when kicking off such a push sync job, the following happens:
So that's where I'm at.
Background:
I f'd up a bit when configuring my onsite PBS instance - I didn't put in "keep latest x" in the prune job, and forgot to mark certain snapshots as protected. So the next time the datastore got prune'd and GC'd it only kept the latest snapshot.
This is a problem, since I wanted to use this particular host group in an unusual way: I used the same host ("archive") to create backups of old, large data exports of different origin - for example "old_fileserver" and "export_websiteX". The data was originally located on a windows machine, so I rsync'd it to a samba share of this temporary "archive" host, created a backup of one fileset via proxmox-backup-client, deleted the fileset on the "archive" host to get enough room for the next fileset, and repeated the process for the next fileset.
Fortunately, I had synced all snapshots to my offsite PBS instance before the "older" snapshots got pruned on the onsite PBS instance. So now I have all datasets only on my offsite PBS, but since I want all my data to be stored sufficiently redundantly, I would like to re-sync the older snapshots to my onsite PBS.
But when kicking off such a push sync job, the following happens:
Code:
2025-01-16T10:00:33+01:00: Starting datastore sync job '$PUSH_USER:$REMOTE_DATASTORE:$LOCAL_DATASTORE:$LOCAL_NAMESPACE:s-00ee9145-853c'
2025-01-16T10:00:33+01:00: sync datastore '$LOCAL_DATASTORE' to '$PUSH_USER/$REMOTE_DATASTORE'
2025-01-16T10:00:33+01:00: ----
2025-01-16T10:00:33+01:00: Syncing datastore '$LOCAL_DATASTORE', namespace '$LOCAL_NAMESPACE' into datastore '$REMOTE_DATASTORE', namespace '$REMOTE_NAMESPACE'
2025-01-16T10:00:33+01:00: Found 1 groups to sync (out of 54 total)
2025-01-16T10:00:33+01:00: skipped: 2 snapshot(s) (2024-08-22T12:14:01Z .. 2024-08-22T13:51:18Z) - older than the newest snapshot present on sync target
2025-01-16T10:00:33+01:00: Finished syncing namespace $LOCAL_NAMESPACE, current progress: 0 groups, 0 snapshots
2025-01-16T10:00:33+01:00: Summary: sync job found no new data to push
2025-01-16T10:00:33+01:00: sync job '$PUSH_USER:$REMOTE_DATASTORE:$LOCAL_DATASTORE:$LOCAL_NAMESPACE:s-00ee9145-853c' end
2025-01-16T10:00:33+01:00: queued notification (id=a131c2c1-53d1-465a-9459-40eeaead9c7e)
2025-01-16T10:00:33+01:00: TASK OK
So that's where I'm at.