Docker 如何自动将Gitlab备份到远程服务器

Docker 如何自动将Gitlab备份到远程服务器,docker,centos,gitlab-ci,windows-server-2012,Docker,Centos,Gitlab Ci,Windows Server 2012,我有一台基于Debian的服务器,其中有一台centos虚拟机。这个VM有一个docker容器,我在其中安装了Gitlab。我有另一台安装了Windows server 2012的服务器,我想每天将Gitlab备份从Debian服务器发送到Windows服务器。我已经阅读了Gitlab备份文档,但无法从中得到答案 这里的任何人都有好的方法,请回答。根据,您可以在Windows Server 2012上创建SMB共享,然后 然后您需要配置Gitlabbackup\u upload\u connec

我有一台基于Debian的服务器,其中有一台centos虚拟机。这个VM有一个docker容器,我在其中安装了Gitlab。我有另一台安装了Windows server 2012的服务器,我想每天将Gitlab备份从Debian服务器发送到Windows服务器。我已经阅读了Gitlab备份文档,但无法从中得到答案

这里的任何人都有好的方法,请回答。

根据,您可以在Windows Server 2012上创建SMB共享,然后

然后您需要配置Gitlab
backup\u upload\u connection
以使用
Local
作为存储提供程序,并指定
Local\u root
作为装载的目录。e、 g:

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'