How to get backup ID in custom backup script

Nov 27, 2023
193
42
28
Netherlands
daniel-dog.com
Hello everyone,

I am almost finished with my backup script that will upload my VM backups and logs to an S3 Compliant provider.
Now I am wanting to upload the backups at the job-end stage since doing it at backup-end/log-end will keep the VM itself in the backup stage.

This is not ideal for many reason but the biggest reason is that uploading the backups to S3 is not messured in minutes but in 10th of minutes per VM.

So I was wondering if there is an option to get the ID of the backup so that I can use it as a consistant value between the backup stages to store what files it needs to upload and from where so that I can later retrieve it when it gets to the job-end stage.
 
Last edited:
It seems that the ID is generated after backing up...
Sorry about this but I just realized I forgot this to mention:

With the backup ID I mean the backup ID from the jobs.conf since I only run my backups via the jobs config.
The backup itself is triggered via either the "Backups" > "Run now" button in the web GUI or via the schedule that is attached to the backup job.
 
  • Like
Reactions: Nollimox