(以下供维护人员参考)
GitLab服务器部署每日备份脚本。每日4:00执行一次备份,备份保留期限为4天。
备份脚本位于:/home/git/auto-gitlab-backup/auto-gitlab-backup.sh
脚本以git用户身份由crontab定时调用运行,使用ssh+rsync的方式将备份文件上传到backup.ustclug.org:/mnt/btrfs/backups/gitlab/。
配置文件位于:/home/git/auto-gitlab-backup/auto-gitlab-backup.conf
如果此脚本在Gitlab上,望放出链接谢谢
使用的是这个项目:https://github.com/sund/auto-gitlab-backup
我看部懂 啊 !!!