Restoring of previously backed up data performed also with the backup script. Operation prerequisites and the Controller actions are much the same as for backing up operation. The only difference is the backup script is invoked with restore argument and actually restores data from the file specified in the BACKUP_FILE environment variable. The Controller should ensure that the file is readable.
If the backup script declaration includes the sufficient element, resources like mailboxes and databases are created empty by the Controller, but filled with backed up data by means of the script. If the element is absent, it is the Controller responsibility to restore all involved resources. Consider this possibility in the Controller implementation.