{"id":15653975,"url":"https://github.com/mammad2c/mmd-gitlab-backuper","last_synced_at":"2025-06-16T23:39:59.269Z","repository":{"id":57299199,"uuid":"302431195","full_name":"mammad2c/mmd-gitlab-backuper","owner":"mammad2c","description":"a package to backup from all projects that you have on gitlab","archived":false,"fork":false,"pushed_at":"2021-07-01T14:21:54.000Z","size":640,"stargazers_count":27,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T13:03:50.543Z","etag":null,"topics":["backup","backup-script","gitlab","gitlab-account","gitlab-backup","mmd-gitlab-backuper","repository"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mammad2c.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-08T18:39:05.000Z","updated_at":"2021-07-01T14:21:57.000Z","dependencies_parsed_at":"2022-08-26T18:02:44.270Z","dependency_job_id":null,"html_url":"https://github.com/mammad2c/mmd-gitlab-backuper","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mammad2c%2Fmmd-gitlab-backuper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mammad2c%2Fmmd-gitlab-backuper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mammad2c%2Fmmd-gitlab-backuper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mammad2c%2Fmmd-gitlab-backuper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mammad2c","download_url":"https://codeload.github.com/mammad2c/mmd-gitlab-backuper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790513,"owners_count":21644228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","backup-script","gitlab","gitlab-account","gitlab-backup","mmd-gitlab-backuper","repository"],"created_at":"2024-10-03T12:48:39.037Z","updated_at":"2025-04-30T22:24:25.905Z","avatar_url":"https://github.com/mammad2c.png","language":"JavaScript","readme":"# mmd-gitlab-backuper\n\nA command line package to backup your repositories in your local from Gitlab. Because of U.S Sanctions there is high risk without any backup. This script supports for users that run gitlab on their own servers.\n\n### Requirements:\n\n- node js v10 above\n\n### Tldr:\n\n`npx mmd-gitlab-backuper -t 'YOUR-PERSONAL-ACCESS-TOKEN'`\n\n**NOTE**: minimum permission required to download repo is `reporter`. you are not allowed to download repo by `guest` permission. you can see permission documents here: [https://docs.gitlab.com/ee/api/members.html](https://docs.gitlab.com/ee/api/members.html)\n\n### How to work:\n\n- grab a Personal Access Token from your gitlab account.\n\nLogin on your gitlab account and click on your avatar on top right. Click on `Settings` and from the left sidebar click on `Access Tokens`:\n\nFull url for gitlab.com: [https://gitlab.com/-/profile/personal_access_tokens](https://gitlab.com/-/profile/personal_access_tokens)\n\nPlease tik the fields like in the picture\n\nAlso provide a name for this token. something like `backup-token`.\n\n![doc1](images/doc1.jpg)\n\nClick on `Create personal access token` and after that grab your token:\n\n![doc2](images/doc2.jpg)\n\n- now run command below in witch directory you want to do backup:\n\n`npx mmd-gitlab-backuper -t 'YOUR-PERSONAL-ACCESS-TOKEN'`\n\nwooow!! that's all. Now your repos will be available in `./repos` directory.\n\n### Options:\n\nSee options by `npx mmd-gitlab-backuper --help`:\n\n```\nOptions:\n      --version  Show version number                                   [boolean]\n  -t, --token    your Gitlab Personal Access Token                      [string]\n  -o, --output   Backup to output directory, defaults to ./repos        [string]\n  -u, --url      Specify Gitlab URL, defaults to https://gitlab.com     [string]\n      --help     Show help                                             [boolean]\n```\n\nfor example you can change default backup directory like this:\n\n`npx mmd-gitlab-backuper -t 'YOUR-PERSONAL-ACCESS-TOKEN' -o './gitlab-repo'`\n\nalso if you are running gitlab on your own server you can change `url`:\n\n`npx mmd-gitlab-backuper -t 'YOUR-PERSONAL-ACCESS-TOKEN' -u 'https://yourdomain.com'`\n\n**NOTE**: `url` should be without `/` at the end.\n\n---\n\n### Gitlab compatibility:\n\nThis script relay on Gitlab API V4. So if your self hosted Gitlab server is outdated, you should update it to use this script.\n\n[https://docs.gitlab.com/ee/api/v3_to_v4.html](https://docs.gitlab.com/ee/api/v3_to_v4.html)\n\n---\n\n# Inspiration\n\n- [https://github.com/itsTeknas/GitlabBackupUtil](https://github.com/itsTeknas/GitlabBackupUtil)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmammad2c%2Fmmd-gitlab-backuper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmammad2c%2Fmmd-gitlab-backuper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmammad2c%2Fmmd-gitlab-backuper/lists"}