rsync+crontab链接:https://blog.csdn.net/weixin_50663202/article/details/109355469
gitlab是装在rsync服务端
https://blog.csdn.net/weixin_45842014/article/details/109255516
(这是gitlab的rpm方式安装)
默认的gitlab存储的目录是在
/var/opt/gitlab/backups
然后在gitlab上拉取数据包命令
gitlab-rake gitlab:backup:create
这个就是拉取下来的
把rsync的配置文件目录改成/var/opt/gitlab/backups
别忘了重启rsync,因为改了配置文件
这里有个问题,如果这个目录文件权限是600,客户端拉取会出问题
在客户端拉取
rsync -az --password-file=/etc/server.pass backuper@192.168.172.131::wwwroot /root/abc
这里在gitlab上创建个项目,wordpress
这里都是有的(重新拉取之后才会有0.0)
谢谢观看!!!