[Example] Creating a Reaction to Automatically Back Up the Project and History Database on Sunday Nights

Scenario: You want the system to automatically make a backup of the project and History Database every week, on Sundays at 10 pm. To do this, you will configure a reaction that invokes the predefined system macros Backup Online and Backup History at the specified time. For background information see Reactions and Macros.

  1. System Manager is in Engineering mode.
  1. In System Browser, select Application View.
  2. Select Applications > Logics > Reactions.
  3. The Reaction Editor tab displays.
  4. From the Triggers expander, open the Time and Organization Mode expander.
  5. The expander initially contains a single row with time and date set to Always.
  6. Click the first row in the Time and Organization expander and set its fields as follows:
    a. In the Effective Days column, open the drop-down list and set Recurrence: Weekly, select the frequency Every: 1 week, and clear the check boxes for all days except Sunday.
    b. In the Time column, clear the Begin of day check box, in the Set Start Time field enter 10:00:00 PM.
    c. Clear the Set End Time check box.
  7. From Output expander, open the Action expander.
  8. In System Browser, select the Manual navigation check box.
  9. Select Applications > Logics > Macros > Backups.
  10. From the Backups folder, drag the Backup Online macro into the empty area of the Scope/Target column in the Action expander.
  11. The Action expander displays a new instruction (row) which invokes the Backup Online macro.
  12. From the Backups folder, drag the Backup History macro into the empty area of the Scope/Target column, underneath the previously added instruction.
  13. The Action expander displays a second new instruction (row) which invokes the Backup History macro.
  14. Open the General Settings expander.
  15. In the Notes field, enter: Automatically back up the project and history databases every Sunday night at 10 pm.
  16. Click Save As .
  17. In the Save Object As dialog box, select the main Reactions folder or any subfolder under it as the destination where you want to save this reaction:
    a. In the Name field, enter Automatic Weekly Backup.
    b. Click OK.
  1. The new reaction object is added to System Browser, and is enabled by default.