# ConfigRestoreData

If a [script add-in](../../../scripting/script_add-ins) implements the [**OnConfigRestore**](../scripting_events/onconfigrestore) event, the method receives a **ConfigRestoreData** object when the configuration is restored from a backup.

This method will be called twice; once before the restore begins, and once after Opus has restarted with the new configuration. The `step` property tells you which invocation this is.

| Property Name | Return Type               | Description                                                                                                                                                                                                                                                                  |
| ------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| location      | _object_:[**Path**](path) | Returns the path of the staging area that backed up Opus configuration has been extracted to. Any changes your script makes to files in the staging folder will be imported into the Opus configuration. Note that this property is only provided if `step` equals "before". |
| step          | _string_                  | Returns either "before" or "after", to indicate which invocation of the event this is.                                                                                                                                                                                       |
