mirror of
https://github.com/tizbac/proxmoxbackupclient_go.git
synced 2025-10-26 11:19:03 +00:00
This commit also introduced the capability to define multiple mail recipients using a comma separated list of addresses
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
{
|
|
"baseurl": "https://your.pbs.installation.net:8007",
|
|
"certfingerprint": "XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX",
|
|
"authid": "MY-SECRET-AUTH-ID",
|
|
"secret": "secret-uuid",
|
|
"datastore": "myDatastore",
|
|
"backupdir": "C:",
|
|
"namespace": "",
|
|
"backup-id": "",
|
|
"pxarout": "",
|
|
"smtp": {
|
|
"host": "smtp.example.com",
|
|
"port": "465",
|
|
"username": "my-user@example.com",
|
|
"password": "my-password",
|
|
"insecure": false,
|
|
"template": {
|
|
"subject": "{{if not .Success}}[FAILED]{{else}}[SUCCESS]{{end}} Backup report for {{.Datastore}}",
|
|
"body": "Backup {{if .Success}}completed{{else}}ended with errors{{end}} on host {{.Hostname}} (took {{.FromattedDuration}})\n{{if .Success}}Chunks New {{.NewChunks}}, Reused {{.ReusedChunks}}.{{else}}Error occurred while working, backup may be not completed.\nLast error is: {{.ErrorStr}}{{end}}"
|
|
},
|
|
"mails": [{
|
|
"from": "sender1@example.com",
|
|
"to": "receiver1@example.com
|
|
}, {
|
|
"from": "sender2@example.com",
|
|
"to": "receiver2@example.com
|
|
}]
|
|
|
|
}
|
|
}
|