In many cases we will be interested in doing something before and / or after the execution of a task, for example:
- Maybe we need to open a VPN connection to get a connection to a remote server
- To create a snapshot of the entire disk of a remote client to copy data without interferences
- To stop some services before to copy their data (Zimbra, MySQL, ....)
- To close the VPN connection we had opened before
- To make sure that certain files are consistent: check files creation date and time, check if compressed bzip files are decompressed without errors, ...
We will use the scripts to program these actions, and we will be able to develop new scripts and even to share them with others.
- Pre scripts will be executed in alphabetic ascending order by script name
- Post scripts will be executed in alphabetic descending order by script name