Gitbackup is designed to help a user generate batch backups files of all gitlab repositories.
A Java version 8 or above is required to run the util.
To get started with Gitbackup you can download a release file or build an executable jar file.
You can use Gradle to build a project.
gradle build
Or either use Docker
docker run --rm -u gradle -v "$PWD":/home/gradle/project -w /home/gradle/project gradle gradle build --warning-mode all
We encourage the use of Docker if you don't have Gradle yet.
The build output directory is:
./build/lisb/gitbackup.jar"
The following table includes the set of arguments required to run the util.
Symbol | Description |
---|---|
-f,--folder | repositories folder |
-l,--login | user login |
-p,--password | user password |
-u,--url | url of a gitlab server |
Open a console to run the util. Choose the folder to save to or create a new folder using the mkdir
command. The arguments should be as follows:
sudo java -jar ./gitbackup.jar -f ./folder -l user -p password -u https://gitlab.com
Note: run the program without arguments to get the Help prompt.
All of your GitLab projects will be stored in the target directory.