LoginSignup
2
1

More than 5 years have passed since last update.

GitLabのバックアップから特定のリポジトリを復旧する

Posted at

退職に伴うアレでGitLabのユーザーを削除したらリポジトリがなくなったと言われたので、 gitlab-rake gitlab:backup:create でつくられた15GBぐらいのtarから復旧した。

バンドルファイルの取り出し

# tar tf xxx_gitlab_backup.tar | grep [探したいリポジトリ名]
repositories/kimari/
repositories/kimari/nankyoku.bundle
repositories/shirase/
repositories/shirase/nankyoku-challenge.bundle
...

# tar xf xxx_gitlab_backup.tar repositories/kimari/nankyoku.bundle

バンドルファイルからclone

mv repositories/kimari/nankyoku.bundle nankyoku.bundle
git clone nankyoku.bundle
cd nankyoku
git log

参考

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1