* [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section
@ 2024-04-25 12:30 Lukas Wagner
2024-04-25 12:30 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: datastore options: link to 'notification-mode' section Lukas Wagner
2024-04-25 12:41 ` [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section Gabriel Goller
0 siblings, 2 replies; 4+ messages in thread
From: Lukas Wagner @ 2024-04-25 12:30 UTC (permalink / raw)
To: pbs-devel
This new section describes how the notification-mode parameter works.
The section also contains also parts of the old notification section
from the maintenance chapter, reusing the description of the
`notify` and `notify-user` parameters.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
docs/maintenance.rst | 26 --------------------------
docs/notifications.rst | 42 ++++++++++++++++++++++++++++++++++++++++++
docs/storage.rst | 4 ++--
3 files changed, 44 insertions(+), 28 deletions(-)
diff --git a/docs/maintenance.rst b/docs/maintenance.rst
index 6dbb6941..1dd17ad0 100644
--- a/docs/maintenance.rst
+++ b/docs/maintenance.rst
@@ -272,32 +272,6 @@ datastores, backup groups or snapshots. To do this, navigate to the **Content**
tab of the datastore and either click *Verify All* or select the *V.* icon from
the **Actions** column in the table.
-.. _maintenance_notification:
-
-Notifications
--------------
-
-Proxmox Backup Server can send you notification emails about automatically
-scheduled verification, garbage-collection and synchronization tasks results.
-
-By default, notifications are sent to the email address configured for the
-`root@pam` user. You can instead set this user for each datastore.
-
-.. image:: images/screenshots/pbs-gui-datastore-options.png
- :target: _images/pbs-gui-datastore-options.png
- :align: right
- :alt: Datastore Options
-
-You can also change the level of notification received per task type, the
-following options are available:
-
-* Always: send a notification for any scheduled task, independent of the
- outcome
-
-* Errors: send a notification for any scheduled task that results in an error
-
-* Never: do not send any notification at all
-
.. _maintenance_mode:
Maintenance Mode
diff --git a/docs/notifications.rst b/docs/notifications.rst
index 4f9b01b7..e5ec74b7 100644
--- a/docs/notifications.rst
+++ b/docs/notifications.rst
@@ -211,3 +211,45 @@ Permissions
In order to modify/view the configuration for notification targets,
the ``Sys.Modify/Sys.Audit`` permissions are required for the
``/system/notifications`` ACL node.
+
+.. _notification_mode:
+
+Notification Mode
+-----------------
+
+To ensure a smooth transition from the old, purely email based system to
+the new configurable notification system introduced in Proxmox Backup Server 3.2,
+datastore options, tape backup jobs and tape restore jobs gain a new option:
+``notification-mode``. This option must be set to ``notification-system``
+to opt in to the new notification system. If the option is not set, or
+set to ``legacy-sendmail``, Proxmox Backup Server will use the old
+system.
+
+Starting with Proxmox Backup Server 3.2, a datastore created in the UI will
+automatically opt in to the new notification system. If the datastore is created
+via the API or the ``proxmox-backup-manager`` CLI, the ``notification-system``
+option has to be set explicitly.
+
+The ``legacy-sendmail`` mode will be deprecated and removed in a later
+release of Proxmox Backup Server.
+
+Settings for ``legacy-sendmail`` notification mode
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+If ``notification-mode`` is set to ``legacy-sendmail``, Proxmox Backup Server
+will send notification emails via the system's ``sendmail`` command to the email
+address configured for the user set in the ``notify-user`` option
+(falling back to ``root@pam`` if not set)
+
+For datastores, you can also change the level of notification received per task
+type via the ``notify`` option.
+
+* Always: send a notification for any scheduled task, independent of the
+ outcome
+
+* Errors: send a notification for any scheduled task that results in an error
+
+* Never: do not send any notification at all
+
+The ``notify-user`` and ``notify`` options are ignored if ``notification-mode``
+is set to ``notification-system``.
diff --git a/docs/storage.rst b/docs/storage.rst
index 4444c423..f1e15d52 100644
--- a/docs/storage.rst
+++ b/docs/storage.rst
@@ -314,7 +314,7 @@ Options
There are a few per-datastore options:
-* :ref:`Notifications <maintenance_notification>`
+* :ref:`Notification mode and legacy notification settings <notification_mode>`
* :ref:`Maintenance Mode <maintenance_mode>`
* Verification of incoming backups
@@ -419,7 +419,7 @@ remote-source to avoid that an attacker that took over the source can cause
deletions of backups on the target hosts.
If the source-host became victim of a ransomware attack, there is a good chance
that sync jobs will fail, triggering an :ref:`error notification
-<maintenance_notification>`.
+<Notification Events>`.
It is also possible to create :ref:`tape backups <tape_backup>` as a second
storage medium. This way, you get an additional copy of your data on a
--
2.39.2
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [pbs-devel] [PATCH proxmox-backup 2/2] ui: datastore options: link to 'notification-mode' section
2024-04-25 12:30 [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section Lukas Wagner
@ 2024-04-25 12:30 ` Lukas Wagner
2024-04-25 12:41 ` [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section Gabriel Goller
1 sibling, 0 replies; 4+ messages in thread
From: Lukas Wagner @ 2024-04-25 12:30 UTC (permalink / raw)
To: pbs-devel
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
www/window/NotifyOptions.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/window/NotifyOptions.js b/www/window/NotifyOptions.js
index 57e8ba44..6590df4a 100644
--- a/www/window/NotifyOptions.js
+++ b/www/window/NotifyOptions.js
@@ -27,7 +27,7 @@ Ext.define('PBS.window.NotifyOptions', {
xtype: 'pbsNotifyOptionEdit',
mixins: ['Proxmox.Mixin.CBind'],
- onlineHelp: 'maintenance_notification',
+ onlineHelp: 'notification_mode',
user: undefined,
tokenname: undefined,
--
2.39.2
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section
2024-04-25 12:30 [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section Lukas Wagner
2024-04-25 12:30 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: datastore options: link to 'notification-mode' section Lukas Wagner
@ 2024-04-25 12:41 ` Gabriel Goller
2024-04-25 12:45 ` Lukas Wagner
1 sibling, 1 reply; 4+ messages in thread
From: Gabriel Goller @ 2024-04-25 12:41 UTC (permalink / raw)
To: Proxmox Backup Server development discussion
On Thu Apr 25, 2024 at 2:30 PM CEST, Lukas Wagner wrote:
> diff --git a/docs/notifications.rst b/docs/notifications.rst
> index 4f9b01b7..e5ec74b7 100644
> --- a/docs/notifications.rst
> +++ b/docs/notifications.rst
> @@ -211,3 +211,45 @@ Permissions
> In order to modify/view the configuration for notification targets,
> the ``Sys.Modify/Sys.Audit`` permissions are required for the
> ``/system/notifications`` ACL node.
> +
> +.. _notification_mode:
> +
> +Notification Mode
> +-----------------
> +
> +To ensure a smooth transition from the old, purely email based system to
> +the new configurable notification system introduced in Proxmox Backup Server 3.2,
> +datastore options, tape backup jobs and tape restore jobs gain a new option:
> +``notification-mode``. This option must be set to ``notification-system``
> +to opt in to the new notification system. If the option is not set, or
> +set to ``legacy-sendmail``, Proxmox Backup Server will use the old
> +system.
> +
> +Starting with Proxmox Backup Server 3.2, a datastore created in the UI will
> +automatically opt in to the new notification system. If the datastore is created
> +via the API or the ``proxmox-backup-manager`` CLI, the ``notification-system``
> +option has to be set explicitly.
> +
> +The ``legacy-sendmail`` mode will be deprecated and removed in a later
> +release of Proxmox Backup Server.
> +
> +Settings for ``legacy-sendmail`` notification mode
> +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> +
> +If ``notification-mode`` is set to ``legacy-sendmail``, Proxmox Backup Server
> +will send notification emails via the system's ``sendmail`` command to the email
> +address configured for the user set in the ``notify-user`` option
> +(falling back to ``root@pam`` if not set)
A period is missing in the last sentence above.
> +
> +For datastores, you can also change the level of notification received per task
'notification' -> 'notifications'
> +type via the ``notify`` option.
> +
> +* Always: send a notification for any scheduled task, independent of the
> + outcome
> +
> +* Errors: send a notification for any scheduled task that results in an error
> +
> +* Never: do not send any notification at all
> +
> +The ``notify-user`` and ``notify`` options are ignored if ``notification-mode``
> +is set to ``notification-system``.
> diff --git a/docs/storage.rst b/docs/storage.rst
> index 4444c423..f1e15d52 100644
> --- a/docs/storage.rst
> +++ b/docs/storage.rst
> @@ -314,7 +314,7 @@ Options
>
> There are a few per-datastore options:
>
> -* :ref:`Notifications <maintenance_notification>`
> +* :ref:`Notification mode and legacy notification settings <notification_mode>`
> * :ref:`Maintenance Mode <maintenance_mode>`
> * Verification of incoming backups
>
> @@ -419,7 +419,7 @@ remote-source to avoid that an attacker that took over the source can cause
> deletions of backups on the target hosts.
> If the source-host became victim of a ransomware attack, there is a good chance
> that sync jobs will fail, triggering an :ref:`error notification
> -<maintenance_notification>`.
> +<Notification Events>`.
>
> It is also possible to create :ref:`tape backups <tape_backup>` as a second
> storage medium. This way, you get an additional copy of your data on a
Otherwise this looks good!
Reviewed-by: Gabriel Goller <g.goller@proxmox.com>
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section
2024-04-25 12:41 ` [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section Gabriel Goller
@ 2024-04-25 12:45 ` Lukas Wagner
0 siblings, 0 replies; 4+ messages in thread
From: Lukas Wagner @ 2024-04-25 12:45 UTC (permalink / raw)
To: Proxmox Backup Server development discussion, g.goller
On Thu Apr 25, 2024 at 2:41 PM CEST, Gabriel Goller wrote:
> > +If ``notification-mode`` is set to ``legacy-sendmail``, Proxmox Backup Server
> > +will send notification emails via the system's ``sendmail`` command to the email
> > +address configured for the user set in the ``notify-user`` option
> > +(falling back to ``root@pam`` if not set)
>
> A period is missing in the last sentence above.
Fixed, thanks!
>
> > +
> > +For datastores, you can also change the level of notification received per task
>
> 'notification' -> 'notifications'
>
Fixed as well.
> > +type via the ``notify`` option.
> > +
> > +* Always: send a notification for any scheduled task, independent of the
> > + outcome
> > +
> > +* Errors: send a notification for any scheduled task that results in an error
> > +
> > +* Never: do not send any notification at all
> > +
> > +The ``notify-user`` and ``notify`` options are ignored if ``notification-mode``
> > +is set to ``notification-system``.
> > diff --git a/docs/storage.rst b/docs/storage.rst
> > index 4444c423..f1e15d52 100644
> > --- a/docs/storage.rst
> > +++ b/docs/storage.rst
> > @@ -314,7 +314,7 @@ Options
> >
> > There are a few per-datastore options:
> >
> > -* :ref:`Notifications <maintenance_notification>`
> > +* :ref:`Notification mode and legacy notification settings <notification_mode>`
> > * :ref:`Maintenance Mode <maintenance_mode>`
> > * Verification of incoming backups
> >
> > @@ -419,7 +419,7 @@ remote-source to avoid that an attacker that took over the source can cause
> > deletions of backups on the target hosts.
> > If the source-host became victim of a ransomware attack, there is a good chance
> > that sync jobs will fail, triggering an :ref:`error notification
> > -<maintenance_notification>`.
> > +<Notification Events>`.
> >
> > It is also possible to create :ref:`tape backups <tape_backup>` as a second
> > storage medium. This way, you get an additional copy of your data on a
>
> Otherwise this looks good!
>
> Reviewed-by: Gabriel Goller <g.goller@proxmox.com>
>
Thanks, I'll send a v2 swiftly.
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-25 12:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-25 12:30 [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section Lukas Wagner
2024-04-25 12:30 ` [pbs-devel] [PATCH proxmox-backup 2/2] ui: datastore options: link to 'notification-mode' section Lukas Wagner
2024-04-25 12:41 ` [pbs-devel] [PATCH proxmox-backup 1/2] docs: document notification-mode and merge old notification section Gabriel Goller
2024-04-25 12:45 ` Lukas Wagner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal