> For the complete documentation index, see [llms.txt](https://docs.storware.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.storware.eu/protecting-applications/applications/git.md).

# Git

To create a new application for Git Repository instances backup, go to the tab: **Applications -> Instances** Then select the **Create** button. The 'Creating an Application Definition' section will be displayed, which needs to be completed. This is a description of how your script is going to be invoked - you need to specify:

* **Name** - unique name of the application in the Storware Backup & Recovery system
* **Choose Node Config** - select which node should perform the task
* **Backup policy** - specify which backup policy should be used for this application
* **Command execution configuration** - select a prepared template for Git Repository backup or create [a new one](/administration/applications/execution-configurations.md) yourself

After saving the application configuration, define the following environment variables:

#### Environment Variables

| Variable                | Value    | Description                                                                                                                                                                       |
| ----------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `VP_GITREPO_ADDRESS`    | *string* | Git clone address for the repository. Supports SSH and HTTPS.                                                                                                                     |
| `VP_GITREPO_USERNAME`   | *string* | Git username with access to the repository.                                                                                                                                       |
| `VP_GITREPO_PASSWORD`   | *string* | Password for the Git user with repository access.                                                                                                                                 |
| `VP_GITREPO_STOREPATH`  | *string* | Path on the server connected to the Git repository for the temporary backup file. **Use this directory only for Storware Backup & Recovery**, as it is cleaned after each backup. |
| `VP_GITREPO_SCRIPTPATH` | *string* | Path to the backup script on the Storware Backup & Recovery node.                                                                                                                 |

> **Note:** After the new application is fully configured, **save** the changes and go to the [Backup SLAs](/administration/applications/backup-slas.md) configuration.
