I have a proprietary application I need to back up, which the recommendation is to stop, do the backup, then restart. Is there a way to easily create a custom pre-backup and post-backup script?
Or even just a one line command? I’m only wanting to run an existing init script once before starting, and again when finished.
Edit: Should say it’s running on Linux and snapshots aren’t an option due to the way the system is set up.