简体   繁体   中英

How to recover gitlab wiki from backup

We have damaged server, where our gitlab was running. Also we have had a backup, which is stored locally now. However, it turns out, that backup has had some damaged files, so we are not able to recover from it. There is no problem with repo, however gitlab's wiki contains a lot of useful information. I've already run printf "%s\n" "$src/@hashed"/*/*/* | grep '\.wiki\.git$' printf "%s\n" "$src/@hashed"/*/*/* | grep '\.wiki\.git$' and found out, that backup contains a lot of hashed files with our wiki. Is there a way to translate them or move to our new empty gitlab?

backup contains a lot of hashed files with our wiki. Is there a way to translate them or move to our new empty gitlab?

Yes, see https://docs.gitlab.com/ee/administration/repository_storage_types.html#from-hashed-path-to-project-name about the name/path hashing.

Alternatively , if the wiki's companion project is not damaged, you can run grep 'fullpath' config in its @hashed/…/…not…wiki….git folder.

Either way, it should be possible to git clone the .bundle files, thus generating a normal repo from them, which you can push again to a new wiki, or extract the file content from.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM