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

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

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

jscj4567 回答:如何将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'
本文链接:https://www.f2er.com/3166623.html

大家都在问