PBS Sync Pull - limit backup hours

Hans Gruber

New Member
Jul 25, 2024
6
0
1
Apologies if this has already been asked, I can't find the relevant info in the help.

I have PBS with a series of Sync Jobs setup to pull data from remote PBS, this works great.

Some of the remote offices have slow uplinks and the sync job can extend into the morning office hours, I then get calls from the remote users about slow Internet access.

Is it possible to stop all running sync jobs at 8am to avoid this and then have them resume on the next scheduled sync in the evening?
 
Last edited:
Is it possible to stop all running sync jobs at 8am to avoid this and then have them resume on the next scheduled sync in the evening?
Yes, you can stop sync jobs programmatically, however this will require some scripting. To stop a sync job, you will have to identify the Jobs UPID and perform a DELTE api call on https://pbs.proxmox.com/docs/api-viewer/index.html#/nodes/{node}/tasks/{upid}

But note, there is no resume in the inter-snapshot sense. Already completed snapshots will not be synced again, previously not synced ones (including the ones being synced while the task was running) will be synced.