Error only emails from proxmox-backup-client?

BloodBlight

Member
Aug 15, 2022
7
1
8
I have a script that calls on proxmox-backup-client from a physical hosts. And though I have everything that I can find in PBS set to only send emails on errors, I still get emails every day without any errors.

Is it possible to change this behavior?
 
how do the emails look like? how do you call proxmox-backup-client?
 
Sure, looking at it again, it looks like it's the host sending it, not the backups server.... I have no logic in my script to send emails, so is the ProxMox host just sending the results of all crontabs as emails?

Command:
proxmox-backup-client backup root.pxar:/ --include-dev /boot --include-dev /boot/efi --include-dev /etc/pve

Results:
Subject: Cron <root@prox01> /root/DoBackups.sh
From: root@prox01#########
Message:
Starting backup: host/prox01/2023-08-30T10:00:01Z
Client name: prox01
Starting backup protocol: Wed Aug 30 03:00:01 2023
Downloading previous manifest (Tue Aug 29 03:00:01 2023)
Upload directory '/' to '##########:8007:proxBack' as root.pxar.didx
skipping mount point: "dev"
skipping mount point: "proc"
skipping mount point: "run"
skipping mount point: "sys"
skipping mount point: "var/lib/ceph/osd/ceph-0"
skipping mount point: "var/lib/ceph/osd/ceph-1"
skipping mount point: "var/lib/ceph/osd/ceph-2"
skipping mount point: "var/lib/ceph/osd/ceph-3"
skipping mount point: "var/lib/ceph/osd/ceph-4"
skipping mount point: "var/lib/ceph/osd/ceph-5"
skipping mount point: "var/lib/ceph/osd/ceph-6"
skipping mount point: "var/lib/lxcfs"
root.pxar: had to backup 283.555 MiB of 14.431 GiB (compressed 96.297 MiB) in 65.07s
root.pxar: average backup speed: 4.358 MiB/s
root.pxar: backup was done incrementally, reused 14.154 GiB (98.1%)
Uploaded backup catalog (1.989 MiB)
Duration: 68.10s
End Time: Wed Aug 30 03:01:09 2023
 
Sure, looking at it again, it looks like it's the host sending it, not the backups server.... I have no logic in my script to send emails, so is the ProxMox host just sending the results of all crontabs as emails?
yes, but this is not proxmox specific thing. output from a cronjob is generally sent via email on linux. if you want to prevent that, redirect the output/error to either a log file or /dev/null
 
  • Like
Reactions: BloodBlight
Well! Today I learned! ^__^

I have only been looking at the "You have mail" message fore a decade or two now...

Thanks for the help!!!
 

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!