A script to backup GitLab repositories.
https://gist.github.com/avence12/70fc35963444d096d1bdb558b252327a https://www.lightblue.asia/gitlab-backup-script/?doing_wp_cron=1545378263.6541728973388671875000 Change: 1. http token: kzy3x2TSeukztpvzBiYA token from gitlab Personal Access Token, Don’t use Account Private Tokens. Need to product Personal Access Token GLAB_GIT_CLONE_CMD="git clone --quiet --mirror git@${GLAB_GITHOST}:" GLAB_GIT_CLONE_CMD="git clone --quiet --mirror http://oauth2:${GLAB_TOKEN}@${GLAB_GITHOST}/" PS:GLAB_TOKEN use in GLAB_PROJ_API, Personal Access Token or Account Private Tokens both is ok REPO have bug:REPO have " must remove, so add line under https://stackoverflow.com/questions/13570327/how-to-delete-a-substring-using-shell-script for REPO in $REPOLIST; do for REPO in $REPOLIST; do REPO=${REPO%\"} GLAB_GITHOST、GLAB_API have gitlab.com change => ip:port or domain ...
新版gitlab安裝
https://xenby.com/b/131-%E6%8E%A8%E8%96%A6-gitlab%E5%AE%89%E8%A3%9D%E8%88%87%E5%9F%BA%E6%9C%AC%E8%A8%AD%E5%AE%9A%E6%95%99%E5%AD%B8 https://gitlab.com/gitlab-org/gitlab-ce/#installation sudo nano /etc/gitlab/gitlab.rb 可以在裡面找到external_url sudo gitlab-ctl reconfigure
過年
最近外資群準備要過年了,內資及集團開始作帳,成交量不大,但穩定的上漲,內資或外資群不作帳,第四季的績效就難看,可能這一年過完後就會被開除,所以意思意思還是得作一下帳。
[轉]Bye bye Mongo, Hello Postgres
https://www.theguardian.com/info/2018/nov/30/bye-bye-mongo-hello-postgres