迅雷搜
https://www.xunleisou.art/
分类: 便签
gitlab 备份与恢复-升级参考
# 启动参考1 # docker run -itd -v /mnt:/mnt -v /home/gitlab/opt/gitlab:/var/opt/gitlab -v /home/gitlab/etc/gitlab:/etc/gitlab -p 9080:80 -p9022:22 --privileged=true --name=gitlabce gitlab/gitlab-ce # 启动参考2 # docker pull docker.1ms.run/gitlab/gitlab-ce:14.6.1-ce.0 # docker pull docker.io/gitlab/gitlab-ce:14.6.1-ce.0 # mkdir -p /gitlab/opt/gitlab # mkdir -p /gitlab/etc/gitlab # docker run -itd -v /mnt:/mnt -v /gitlab/opt/gitlab:/var/opt/gitlab -v /gitlab/etc/gitlab:/etc/gitlab -p 8080:80 -p8022:22 --privileged=true --name=gitlab14 gitlab/gitlab-ce:14.6.1 # docker exec -it gitlab14 bash # 查看初始密码 # cat /etc/gitlab/initial_root_password #1.确认备份目录 # cat /etc/gitlab/gitlab.rb | grep backup #2. 生成备份文件 gitlab-rake gitlab:backup:create #3. 恢复 自定义文件名称, 恢复前需要关闭两个服务,避免冲突 gitlab-ctl stop unicorn gitlab-ctl stop sidekiq gitlab-rake gitlab:backup:restore BACKUP=00000000_2025_06_28_10.8.4 4. 重建权限 还原完后,需要修复一下权限: 停止当前gitlab,重新加载配置gitlab-ctl stop gitlab-ctl reconfiguregitlab 升级过程,,,,,,一把辛酸泪
1. 查看版本,备份,container 内运行cat /opt/gitlab/version-manifest.txt | grep "gitlab"
gitlab-rake gitlab:backup:create
# 备份 /etc/gitlab 数据
# 在 /var/opt/gitlab/backups 中有备份文件gitlab gitlab-rake gitlab:check
gitlab gitlab-rake gitlab:upgrade– ./config:/etc/gitlab
– ./logs:/var/log/gitlab
– ./data:/var/opt/gitlabcat /opt/gitlab/version-manifest.txt | head -1
AlpineLinux-desktop-中文桌面
#安装桌面
setup-desktop
#安装中文输入法 (有错误)
#-- apk add fcitx5 fcitx5-configtool fcitx5-qt fcitx5-chinese-addons
#-- 启动 fcitx5-configtool
# 查看磁盘分区
apk add lsblk
lsblk -o NAME,SIZE,FSTYPE,UUID,PARTUUID,MOUNTPOINT
#关闭桌面启动
rc-service gdm stop
rc-service elogind stop
rc-update del elogind default
rc-update del gdm default
# 彻底卸载 Xorg(完全移除图形组件,最小化系统)
# 卸载X服务+桌面全套
apk del xorg-server xf86-* mesa lightdm sddm xfce lxqt openbox
# 清理无用依赖
apk autoremove
scene_org_demo_64k-3d-fire-heaven7
Problems? Mail: ftp@scene.org as of November 2007
__/\ ___ ___ ___ ___
/ /__\_/ \_/_ \_/_ \_/_ \ zS!
/\__ \/ /__/ /__/ / / /__/ ___ ___ ___
~\___/~\___/~\___/~\/__/~\___/ _/ \_/_ \_/ \
_ / / / /__/ / /
s c e n e . o r g \// ~\___/~\/ ~\_ /
\_/
ftp.scene.org – ‘elektronik free art’ since 11 March 1996
MIRRORS:
ftp://ftp.no.scene.org (ftp.gathering.org) in /scene.org/
ftp://ftp.pl.scene.org (sunsite.icm.edu.pl) in /pub/demos/
ftp://ftp.us.scene.org (ftp.club.cc.cmu.edu) in /scene.org/
http://http.no.scene.org (ftp.gathering.org) in /scene.org/
http://http.pl.scene.org (sunsite.icm.edu.pl) in /pub/demos/
http://http.us.scene.org (ftp.club.cc.cmu.edu) in /pub/scene.org/
PLATINUM SPONSORS:
Geizhals (geizhals.at/eu/?scene.org)
Guerilla Games (www.guerrilla-games.com)
Pixar Animation Studios (www.pixar.com)
Rotterdam University (www.hogeschool-rotterdam.nl)
Starbreeze Studios (www.starbreeze.com/scene.jsp)
Viprinet (www.viprinet.com)
GOLD SPONSORS:
Assembly Organizing (www.assembly.org)
Mindcandy (www.mindcandydvd.com)
Orange Juice (www.ojuice.net)
Slengpung (www.slengpung.com)
The Gathering (www.gathering.org)
SILVER SPONSORS:
Breakpoint (breakpoint.untergrund.net)
DemoGL (sourceforge.net/projects/demogl)
Firelight Multimedia (www.fmod.org)
Gaffer Software (www.gaffer.org)
Heaven Fresh (www.heavenfresh.com)
NetCologne (www.netcologne.de)
Nixxes Software (www.nixxes.com)
Tomcat’s T-shirt Shop (www.tomcatpolo.hu)
Twilight3D (www.twilight3d.com)
BRONZE SPONSORS AND INDIVIDUAL DONATORS:
Please see: http://www.scene.org/sponsors.php
HOW CAN I HELP?
* You can help by donating money to scene.org. All money will go
into upgrading the archive, and will allow us to improve our
services to you and the rest of the scene.
[http://www.scene.org/donate.php]
* We are also looking for corporate sponsors. The return on a
sponsorship involves advertising the company on the archive. This
is an ideal method for a company to reach a global potential
customer base of young, talented and motivated people in the
computer and design business.
[http://www.scene.org/sponsorprogram.php]
* Thirdly, we are looking for mirrors for our archive. Mirrors help
us with lowering the demand on our main server and improve the
availability of the archive around the world.
For more information, refer to the website or contact us at
staff@scene.org.
With regards,
Jeffry Sleddens (Redhound)
<redhound@scene.org>
