linux - Gitlab备份还原报错--> tar : This does not look like a tar archive

标签 linux ubuntu gitlab backup

我正在尝试在 Ubuntu 服务器上恢复 GitLab (8.16.1) 备份(备份由命令 sudo gitlab-rake gitlab:backup:create 获取)使用命令:

sudo gitlab-rake gitlab:backup:restore BACKUP=1493107454_2018_04_25_10.6.4-ce

它给我错误:

gzip: stdin: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

我的备份文件是.tar 文件。

gzip 版本 1.6

据我所知,在恢复它首先提取的备份文件之前。
我不知道为什么提取的文件具有扩展名 .tar.gz

有人可以帮忙吗?

最佳答案

sudo gitlab-rake gitlab:backup:restore BACKUP=1493107454_2018_04_25_10.6.4-ce

这意味着你应该有一个像这样的文件:

var/opt/gitlab/backups/1493107454_2018_04_25_10.6.4-ce_gitlab_backup.tar

同一文件夹中的 cat backup_information.yml 为您提供有关该备份的信息。
如果文件不是有效的存档,那将解释错误消息。
您可以将 --trace 添加到 rake 命令以了解更多信息。

关于linux - Gitlab备份还原报错--> tar : This does not look like a tar archive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51453461/

相关文章:

c - 使用 dlopen() 加载时解决动态库依赖关系

Ubuntu Live USB 继续占用空间

php - 附加到 php 指令而不是替换?

c - 我如何获取并同步所有 X11 窗口的完整列表?

xml - 解析 xml 的 shell 命令运行不正常

linux - 使用 bash shell 脚本比较不同目录中的文件

linux - s-nail 错误 : Cannot send email to myself

teamcity - 在 GitLab TeamCity 中显示构建状态

git - GitLab 中不显示重音

git - 如何优化我的gitlab-ci.yml任何想法?