# Restoring GitLab Repositories to a Disk

You can restore a GitLab repository group to a disk.

Caution

All repository data in the destination location is overwritten by the restored data.

Review the following considerations for restores to a disk:

- If the repository is present, then the name, description, and visibility are not modified.

- If the repository is not present, a new repository is created with the same name, description, and visibility as the source repository.

## Procedure

1. From the Command Center navigation pane, go to Protect > DevOps.

   The Overview page appears.

2. Click the DevOps tab.

3. On the GitLab tab, click the GitLab app.

   The GitLab app page appears.

4. On the Repository groups tab, in the row for the repository group, click the action button , and then click Restore.

   The Backup Content page appears.

5. Select the content to restore, and then click Restore.

   You can select all projects or the individual projects.

   The Restore options dialog box appears.

6. From the Restore type list, select Restore to disk.

7. From Destination server, select the server to restore the repository to.

8. From the GitLab services list, select the service type—Deployments, Issues, Snippets, or Wikis.

9. In the Destination path box, enter the path to restore the data to.

10. To overwrite files in the destination path, select the Overwrite files unconditionally check box.

11. In the No of streams box, enter the number of streams to use for the restore.

    Note

    This option is only applicable for Commvault software deployments.

12. Click Submit.

    The index of the repository is restored.

13. To restore files from the index of the repository, complete the following steps:

    1. If, for example, C:\Temp\Restore\restored_repo is the destination repository for the restore operation, rename it to C:\Temp\Restore\restored_repo.git.

    2. On the command line, type the following command:

           git clone C:\Temp\Restore\restored_repo.git   C:\Temp\Restore\restored_repo

       The files are restored to the directory C:\Temp\Restore\restored_repo.

×

Loading...