> For the complete documentation index, see [llms.txt](https://help.rbsgo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.rbsgo.com/dineplan/backoffice/settings/database.md).

# Database

## **Database** <a href="#database" id="database"></a>

### **Overview** <a href="#overview.7" id="overview.7"></a>

The Database section provides tools for managing the DinePlan database, including database backups, database tasks, data import and export, database archival, training mode, and database maintenance.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-6e5ab1db8671d6959a79601558b21435b491bff0%2Fatt_30_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

## **Backup Database** <a href="#backup-database" id="backup-database"></a>

### **Overview** <a href="#overview.8" id="overview.8"></a>

The Backup Database section is used to configure and create backups of the DinePlan database. It also provides options to automatically create backups after a work period ends or before upgrading to a new version.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-339608bba6e62c8a3b688a07096039d7f3663378%2Fatt_31_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Screen Elements** <a href="#screen-elements.7" id="screen-elements.7"></a>

| **Screen Element**                                                               | **Description**                                                                                                               |
| -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Database                                                                         | Specifies the database to be backed up. Leave empty to automatically find the database name.                                  |
| TotalDays                                                                        | Specifies the number of days to retain backup files. A value of 0 indicates that files are not deleted based on this setting. |
| Backup Location                                                                  | Specifies the location where the database backup is stored. Leave empty to use the default backup location.                   |
| Auto create backups after work period ends                                       | Automatically creates a database backup when the work period ends.                                                            |
| Auto create backups before upgrading to a new version                            | Automatically creates a backup before the application is upgraded to a new version.                                           |
| Migrate after restoration                                                        | Enables migration after restoring the database.                                                                               |
| Allow overwriting database files if database names does not match during restore | Allows database files to be overwritten when the database names do not match during restoration.                              |
| "Save"                                                                           | Saves the configured database backup settings.                                                                                |
| "Backup Database"                                                                | Creates a database backup based on the configured settings.                                                                   |
| "Backup Location"                                                                | Opens the backup location configuration or selection.                                                                         |

### **Working** <a href="#working.6" id="working.6"></a>

#### **Configure Database Backup** <a href="#configure-database-backup" id="configure-database-backup"></a>

1. Open "Database" and select "Backup Database".
2. Enter the required database name in "Database", or leave it empty to automatically find the database name.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-9df6af0247688cf211049bdade6afecb099184d0%2Fatt_32_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Enter the required number of days in "TotalDays" to retain backup files.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-b6bbf6fe57c9104f8f979fc99d4256e9c1b2c746%2Fatt_33_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Specify the required location in "Backup Location", or leave it empty to use the default location.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-386586cccb271ae40738fd1a308a5ba56dc5ae15%2Fatt_34_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Enable the required automatic backup options.
6. Enable "Migrate after restoration" if migration is required after restoring the database.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-1c01b47dd052a9347de915db89953d56aa2e4c94%2Fatt_35_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

7. Enable "Allow overwriting database files if database names does not match during restore" when required.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-02006c7395a4e03544c7b35b6d4d93b60950e4e0%2Fatt_36_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

8. Click "Save" to save the configuration.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-6923bc36215f6c1ed3e1a018c723171639874375%2Fatt_37_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

9. Click "Backup Database" to create a backup when required.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-e0dd3ce51126b79f60a256bb103002eeff7f2414%2Fatt_38_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

10. To view the location of the existing backup data, select "Backup Location".

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-dd21be6b22a9ee0926a1eb6b4ef752427ac5fa1a%2Fatt_39_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Use Case** <a href="#use-case.6" id="use-case.6"></a>

1. Create a backup of the DinePlan database before making major changes.
2. Configure automatic backups after a work period ends.
3. Create a backup before upgrading DinePlan to a new version.
4. Define how long backup files should be retained.
5. Store backups in a specified location.
6. Enable migration after database restoration when required.
7. Allow database files to be overwritten during restoration when required.
8. Maintain a backup of database data for recovery purposes.

### **Notes** <a href="#notes.6" id="notes.6"></a>

* Leave "Database" empty when the database name should be detected automatically.
* "Total Days" set to 0 indicates that files are not deleted based on this setting.
* Leave "Backup Location" empty to use the default backup location.
* Configure automatic backup options according to the customer's requirements.

## **Database Task** <a href="#database-task" id="database-task"></a>

### **Overview** <a href="#overview.9" id="overview.9"></a>

The Database Task section allows configured database tasks to be viewed and executed. Additional tasks can be created in the DatabaseTasks folder using supported .sql or .bat files.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-3533d5da7504fa6d5604cb237fb1ae17d2d38fba%2Fatt_40_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Screen Elements** <a href="#screen-elements.8" id="screen-elements.8"></a>

| **Screen Element**      | **Description**                                    |
| ----------------------- | -------------------------------------------------- |
| Name                    | Displays the name of the configured database task. |
| Task Type               | Displays the type of database task.                |
| "Execute Database Task" | Executes the selected database task.               |

### **Working** <a href="#working.7" id="working.7"></a>

1. Open "Database" and select "Database Task".
2. Review the available database tasks.
3. Select the required task.
4. Click "Execute Database Task" to run the selected task.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-244253b53b3c5a07b339a6fc9f332f59094aa46d%2Fatt_41_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Use Case** <a href="#use-case.7" id="use-case.7"></a>

1. View the database tasks available in DinePlan.
2. Identify the required database task.
3. Execute a configured task when database-level processing is required.
4. Run SQL-based database tasks when applicable.
5. Run batch-based database tasks when applicable.
6. Use predefined tasks for required database operations.
7. Execute tasks without manually accessing the database.
8. Maintain commonly required database operations as reusable tasks.

### **Notes** <a href="#notes.7" id="notes.7"></a>

* Additional database tasks can be created in the DatabaseTasks folder.
* The displayed information indicates that .sql and .bat files are supported.
* Execute database tasks only when the required operation is known.

## **Database Tool** <a href="#database-tool" id="database-tool"></a>

### **Overview** <a href="#overview.10" id="overview.10"></a>

The Database Tool section provides options to export and import selected database configuration data. It also provides an option to automatically create a backup before importing data.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-a8bbdfdf82ff2c302e2baa1081f7d2ab0210368c%2Fatt_42_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Screen Elements** <a href="#screen-elements.9" id="screen-elements.9"></a>

| **Screen Element**                        | **Description**                                                    |
| ----------------------------------------- | ------------------------------------------------------------------ |
| Export File                               | Specifies the file location for the exported data.                 |
| "Export"                                  | Exports the selected database data.                                |
| Auto Create backups before importing data | Automatically creates a backup before importing data when enabled. |
| "Import"                                  | Imports data from the selected file.                               |
| All                                       | Allows all available data categories to be selected.               |
| Actions                                   | Data category available for export or import.                      |
| Automation Commands                       | Data category available for export or import.                      |
| Rules                                     | Data category available for export or import.                      |

### **Working** <a href="#working.8" id="working.8"></a>

#### **Export Data** <a href="#export-data" id="export-data"></a>

1. Open "Database" and select "Database Tool".
2. Select the required data categories.
3. Specify the required location in "Export File".

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-d44e232b1c58b56c167156edffe9e01bfc831414%2Fatt_43_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Click "Export" to export the selected data.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-77324282647ef5766de21839dec171d3a6a714de%2Fatt_44_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **Import Data** <a href="#import-data" id="import-data"></a>

1. Open "Database" and select "Database Tool".
2. Enable "Auto Create backups before importing data" if a backup is required before the import.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-ad88058df1e4f343fc8d086a696ada8af0c246c3%2Fatt_46_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Select the required data categories.
4. Select the required import file.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-0ef300a9c88e9d95d1f114c1eae636ab1f98d8c2%2Fatt_47_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Click "Import" to import the selected data.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-a0b8f62fa410d0bbaec99aca65f62b5ceabc7544%2Fatt_48_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Use Case** <a href="#use-case.8" id="use-case.8"></a>

1. Export selected database configuration data.
2. Create a copy of selected configuration data for another environment.
3. Import previously exported configuration data.
4. Select specific data categories instead of importing or exporting all available data.
5. Create an automatic backup before importing data.
6. Transfer configured actions between environments.
7. Transfer automation commands when required.
8. Transfer rules using the database tool.

### **Notes** <a href="#notes.8" id="notes.8"></a>

* Select the required categories before performing an import or export.
* Enable "Auto Create backups before importing data" when a backup is required before importing.
* Verify the selected file and data categories before importing.

## **Archival** <a href="#archival" id="archival"></a>

### **Overview** <a href="#overview.11" id="overview.11"></a>

The **Archival** section is used to configure database archival settings. It allows you to specify how many days of data should be retained and provides an option to automatically archive the database when the workday ends.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-70c6ce10de19c05c988b11411842c102fb9aca5b%2Fatt_49_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Screen Elements** <a href="#screen-elements.10" id="screen-elements.10"></a>

| **Screen Element**                            | **Description**                                                 |
| --------------------------------------------- | --------------------------------------------------------------- |
| Archival Days                                 | Specifies the number of days for which data should be retained. |
| Automatic archive database when work day ends | Automatically archives the database when the workday ends.      |
| "Save"                                        | Saves the archival configuration.                               |
| "Manual Archive"                              | Manually archives the database.                                 |

### **Working** <a href="#working.9" id="working.9"></a>

1. Open "Database" and select "Archival".
2. Enter the required number of days in "Archival Days".

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-50f8c444474a8d27d0143ad4501ee468bb7b941d%2Fatt_50_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Enable "Automatic archive database when work day ends" if automatic archival is required.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-ac2b5d33ddf40f49d37712e060378ab469fd6b5e%2Fatt_51_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Click "Save" to save the configuration.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-fd4bf54b8d9f257022bcdca3693db9cc4a74ffac%2Fatt_52_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Click "Manual Archive" when a manual archival operation is required.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-b1405492ea2efe2a7d0e1adc0deaa9b06393fadc%2Fatt_53_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Use Case** <a href="#use-case.9" id="use-case.9"></a>

1. Define the number of days for which database data should be retained.
2. Automatically archive database data when the workday ends.
3. Perform a manual database archive when required.
4. Maintain older database data through archival.
5. Configure archival based on the customer's data-retention requirements.
6. Reduce the amount of active database data when archival is enabled.
7. Maintain a regular archival process at the end of the workday.
8. Perform archival manually when automatic archival is not required.

### **Notes** <a href="#notes.9" id="notes.9"></a>

* Configure "Archival Days" according to the required data-retention period.
* Enable automatic archival only when it is required for the customer's setup.
* Use "Manual Archive" when an immediate manual archival operation is required.

## **Training** <a href="#training" id="training"></a>

### **Overview** <a href="#overview.12" id="overview.12"></a>

The **Training** section provides options to enable or disable the training functionality.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-861139d1f5f7c7d36493b4ed106b71fc8c5ee18a%2Fatt_54_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Screen Elements** <a href="#screen-elements.11" id="screen-elements.11"></a>

| **Screen Element** | **Description**                      |
| ------------------ | ------------------------------------ |
| "Enable"           | Enables the training functionality.  |
| "Disable"          | Disables the training functionality. |

### **Working** <a href="#working.10" id="working.10"></a>

1. Open "Database" and select "Training".
2. Click "Enable" to enable training functionality.
3. Click "Disable" to disable training functionality when it is no longer required.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-092817e9c50b8e46a7a807e05c32ada36a16df2c%2Fatt_55_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Use Case** <a href="#use-case.10" id="use-case.10"></a>

1. Enable training functionality when the system is being used for training.
2. Provide a separate environment for training activities.
3. Disable training functionality when normal operations are required.
4. Switch between training and normal operational requirements as needed.
5. Enable training during staff onboarding.
6. Use training functionality for user practice.
7. Disable training after training activities are completed.
8. Control the availability of training functionality from the Database settings.

### **Notes** <a href="#notes.10" id="notes.10"></a>

* Enable or disable training according to the customer's requirements.
* Ensure the appropriate setting is selected before users begin their activities.

## **Maintenance** <a href="#maintenance" id="maintenance"></a>

### **Overview** <a href="#overview.13" id="overview.13"></a>

The Maintenance section provides a database maintenance option to automatically adjust the database size.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-d1b297831edf1f6dfbc81e7f5e296aebf3c8d40a%2Fatt_56_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Screen Elements** <a href="#screen-elements.12" id="screen-elements.12"></a>

| **Screen Element** | **Description**                                        |
| ------------------ | ------------------------------------------------------ |
| "Safely Auto Size" | Performs the available database auto-sizing operation. |

### **Working** <a href="#working.11" id="working.11"></a>

1. Open "Database" and select "Maintenance".
2. Click "Safely Auto Size" to perform the database sizing operation.

<figure><img src="https://3400173661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EE0WqKESoD8hlEpFQQL%2Fuploads%2Fgit-blob-d7d56745241dfaae36165b9ef279ef48a93abac6%2Fatt_57_for_3425271811.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Use Case** <a href="#use-case.11" id="use-case.11"></a>

1. Perform database maintenance when required.
2. Adjust the database size using the available maintenance option.
3. Perform the operation through the DinePlan interface.
4. Use the maintenance option when database sizing needs to be addressed.
5. Carry out routine database maintenance when required.
6. Perform maintenance without manually accessing database files.
7. Use the available maintenance function as part of database administration.
8. Maintain the database according to operational requirements.

### **Notes** <a href="#notes.11" id="notes.11"></a>

* Use **"**&#x53;afely Auto Size" only when database maintenance is required.
* Database maintenance should be performed carefully, preferably by an authorized user.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.rbsgo.com/dineplan/backoffice/settings/database.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
