How to recover logfile when backup destination is PBS

Geco-iT

Member
Mar 24, 2021
16
18
8
31
www.geco-it.fr
HI,

we use the vzdump hookscript to send backup results to an healthcheck.io instance.

When using "classic" vzdump repo, i have the logfile in the repo and with the env var $LOGFILE, of the log-end phase, I can recover the backup log and send it to HCIO.

But when using PBS destination there is no $LOGFILE env var, because there is no text file i suppose. I can find the backup log in /var/log/pve/tasks but this is the combined log for all the VMs. I want to individual one, like with the logfile env...

I saw that there is a env called TARGET in the LOG-END phase, something like "ct/115/2023-09-14T12:59:36Z".

Is there a way with proxmox-backup-client to recover the log with this TARGET ? Because i see this in the usage of the command :

Bash:
proxmox-backup-client snapshot upload-log <snapshot> <logfile> [OPTIONS]

Do we have a snapshot download or read log command ?

Thanks by advance for the help, have a nice day !
 

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!