CodePudding user response:
Default is stored in the default location at/var/opt/gitlab/git - data repositories if must carry on the git repository migration, do the following# prepared before migration to stop GitLab services, prevent users from writing data,
/root @ gitlab ~ # gitlab - CTL stop
# note 'repositories' behind without a slash, and
# '/home/gitlab - data' behind is a slash,
/root @ gitlab ~ # rsync - av/var/opt/gitlab/git - data repositories/home/gitlab - data/
# if you need to repair permissions,
# can run the following command to repair,
/root @ gitlab ~ # gitlab - CTL reconfigure
# to check again under/home/gitlab - data directory. Normally should have the following subdirectories:
# repositories
/root @ gitlab ~ # ls/home/gitlab - data/
Repositories
# completed! Start GitLab, verify whether can
# via web access Git repository,
/root @ gitlab ~ # gitlab - CTL start