[PVE-User] Adding info to backup email from hook script "job-start" phase

Dietmar Maurer dietmar at proxmox.com
Mon Dec 16 06:00:26 CET 2013


> > Anything you write to stdout/stderr should show up in the backup log.
> 
> 
> Only the stuff printed after each individual "backup-start" seems to show up, in
> the vm backup log. Output in "job-start", before the vm backups themselves is
> not there.

So why are there things like 'backup mode:' which are printed before we run
the 'backup-start' hook?

I just saw that we pass the logfd to the hook script like:

	    $self->run_hook_script ('backup-start', $task, $logfd);

So please try to print to $logfd instead of stdout/stderr.




More information about the pve-user mailing list