ezbz / gitlabber

Gitlabber - clones or pulls entire groups tree from gitlab
MIT License
483 stars 80 forks source link

Regarding use for backups #41

Closed jeffrson closed 3 months ago

jeffrson commented 3 years ago

Not really a bug, but some questions: I want to use gitlabber for backing up my repositories from Gitlab.

How does gitlabber behave then? Should I simply rerun it? Will it clone new repositories and update (fetch) existing?

Is there a "mirror mode" (git clone --mirror ; git remote update)?

Thanks a lot

ezbz commented 3 years ago

If the project directory exists and is a valid git repository (has .git folder in it) gitlabber will perform a git pull in the directory, otherwise the project directory will be created and the gitlab project will be cloned into it.

Currently mirror mode is not supported, gitlabber also doesn't backup any GitLab server constructs there are other tools to do that.

lambdafu commented 3 years ago

Would be good to have a way to use "git clone --bare" to save disk space.