Title: Trigger Script on LINSTOR Backup Shipping Schedule (Pre/Post Hook Support?)
Hi all,
I’m using LINSTOR’s snapshot shipping schedule feature, and I have a question regarding scripting hooks.
As per the documentation here, you can create a backup shipping schedule using a command like:
# linstor schedule create \
  --incremental-cron '* * * * *' \     # (1) Incremental backup cron
  --keep-local 5 \                     # (2) Retain 5 local backups
  --keep-remote 4 \                    # (3) Retain 4 remote backups
  --on-failure RETRY \                 # (4) Retry policy
  --max-retries 10 \                   # (5) Max retry attempts
  <schedule_name> \                    # (6) Schedule name
  '* * * * *'                          # (7) Full backup cron schedule
followed by
# linstor backup schedule enable \
  [--node source_node] \ (1)
  [--rg resource_group_name | --rd resource_definition_name] \ (2)
  remote_name \ (3)
  schedule_name (4)
I would like to trigger a script at two specific points:
- Before the shipping starts – to notify the user that replication is about to begin.
- After the shipping completes – to confirm replication has finished (success or failure).
Is there a built-in way to have the shipping schedule call a custom script before and/or after the operation runs?
Or alternatively, is there a hook/event I can attach to, or a log monitor workaround that is commonly used for this?
Appreciate any insights or examples from those who have implemented something similar.
Thanks!