PBS Log Shell

Quickly

Renowned Member
Sep 16, 2012
100
5
83
Hallo zusammen.

Ich suche eine Möglichkeit mir die PBS einige Logs in der Shell anzeigen zu lassen.

# Error - der wäre mir wichtig!
  • Die Error aus der GUI (30 Tage) wären toll.
  • Identifikation Store oder Name
  • Lesbares Datum
# Store Größe
Hier habe ich bisher hur gefunden...
du -sh /mnt/datastore/* >> /tmp/pbsdata.txt

# Laufende Tasks
Ok, die habe ich... ;)

proxmox-backup-manager task list

# Tägliche Mail senden
Ich möchte mir das täglich per Mail senden lassen.
mail -s "PBS Status von ${FQDN}" info@MeineDomain.de < /tmp/pbsdata.txt
 
Last edited:
you can use the 'proxmox-backup-debug' tool for querying the api, for example list all tasks with errors:

Code:
proxmox-backup-debug api get /nodex/NODENAME/tasks --errors 1

here: https://pbs.proxmox.com/docs/api-viewer/index.html can you see the api documentation (parameters, etc)
 

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!