Reputation: 145
There is an unstable gitlab server and I am not sure that it will be able to work in the future. Therefore, I want to make a backup copy of all the repositories (projects) that are there.
Cloning the source code will be enough, but it will be great if there is a way to save issues as well. Are there any ways to do this?
Upvotes: 2
Views: 454
Reputation: 3026
It depends on what kind of access you have, but if you don't have administrator access to do a full backup, then the best thing to do is to use a couple of API endpoints to get the information you need and go from there.
membership
if you only want the ones you're a member of.min_access_level
= maintainer (or higher) if you want to export whole projects.git clone
for the repositories by storing the ssh_url_to_repo
or http_url_to_repo
from the Projects API and running through each.
Upvotes: 1