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

How to automate Gitlab backups to a remote server

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

这里哪位大侠有什么好的方法,求解答

根据 Uploading to locally mounted shares, you can create an SMB share on your Windows Server 2012, and .

然后你需要配置 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'