Restore individual repository from Gitlab backup file

3.9k Views Asked by At

I'm trying to restore only 1 repository from complete gitlab backup file .

I'm using gitlab-rake for backup my repositories .

Backup command :

sudo gitlab-rake gitlab:backup:create

How i can restore from this tar file only 1 repository ?

more Info :

Gitlab version : GitLab Enterprise Edition 7.13.5-ee

Thanks , Amit

2

There are 2 best solutions below

1
On

You can check this one: backup restore

so you can use parameter before you backup the repository.

0
On

There is now an officially documented way/workaround to restore only one or a few project(s) or group(s).

Essentially: Restore the full .tar backup into a temp instance, then use the built-in ex- & import functions from there.