我正在尝试在 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/