我有一台基于Debian的服务器,其中有一台centos虚拟机。这个虚拟机有一个docker容器,我在其中安装了Gitlab。我有一台安装了Windows Server 2012的服务器,我想每天将Gitlab备份从Debian服务器发送到Windows服务器。我已经阅读了Gitlab备份文档,但无法从中获得答案。
这里的任何人都有什么好的方法,请回答。
我有一台基于Debian的服务器,其中有一台centos虚拟机。这个虚拟机有一个docker容器,我在其中安装了Gitlab。我有一台安装了Windows Server 2012的服务器,我想每天将Gitlab备份从Debian服务器发送到Windows服务器。我已经阅读了Gitlab备份文档,但无法从中获得答案。
这里的任何人都有什么好的方法,请回答。
根据Uploading to locally mounted shares,您可以在Windows Server 2012和mount it on your Gitlab docker container上创建SMB共享。
然后,您需要配置Gitlab backup_upload_connection
以使用Local
作为存储提供程序,并指定local_root
作为您的挂载目录。例如:
gitlab_rails['backup_upload_connection'] = {
:provider => 'Local',:local_root => '/mnt/backups'
}
# The directory inside the mounted folder to copy backups to
# Use '.' to store them in the root directory
gitlab_rails['backup_upload_remote_directory'] = 'gitlab_backups'