Thanks for your replies. Synology Active Backup for Business when backing up Linux does have the option to run Pre and Post Scripts.
It's ok. If there is no other demand for it, then I'm not asking anyone to spend time on it. I'll have a bit of play with a VM when I get some spare time.