Home > other >  Environment, builds with gitlab in code in what position?
Environment, builds with gitlab in code in what position?

Time:10-14

Git and gitlab is my baidu before, and then create a warehouse on gitlab, code management, so the above gives a mobile hard disk, said regular backup code, more depressed is, I'll find a Linux server, didn't see the code is put in what position, which tall person to give a hint, we should be grateful,

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