{"id":20235356,"url":"https://github.com/inkohx/gh-archiver","last_synced_at":"2025-03-03T14:15:31.386Z","repository":{"id":65253683,"uuid":"583919961","full_name":"InkoHX/gh-archiver","owner":"InkoHX","description":"A tool for archiving GitHub repositories","archived":false,"fork":false,"pushed_at":"2023-12-23T02:27:23.000Z","size":100,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T16:50:35.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InkoHX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-31T13:13:46.000Z","updated_at":"2023-01-13T10:27:59.000Z","dependencies_parsed_at":"2023-01-15T23:00:42.055Z","dependency_job_id":"88e63cd8-4751-44ee-a660-0c35fc5077ce","html_url":"https://github.com/InkoHX/gh-archiver","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InkoHX%2Fgh-archiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InkoHX%2Fgh-archiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InkoHX%2Fgh-archiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InkoHX%2Fgh-archiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InkoHX","download_url":"https://codeload.github.com/InkoHX/gh-archiver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241678154,"owners_count":20001682,"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":[],"created_at":"2024-11-14T08:16:03.239Z","updated_at":"2025-03-03T14:15:31.365Z","avatar_url":"https://github.com/InkoHX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-archiver\n\nA tool for archiving GitHub repositories\n\n## Installation\n\n```sh\n# Global install\nnpm i -g gh-archiver\n\n# npx\nnpx gh-archiver --help\n```\n\n## Usage\n\n### Create a Personal Access Token\n\nYou need to create a Personal Access Token with permissions set as per the following table from [the settings](https://github.com/settings/personal-access-tokens/new).\n\nSelect `All repositories` for `Repository access`\n\n| Permission Name | Access           |\n| --------------- | ---------------- |\n| Administration  | `Read and write` |\n| Metadata        | `Read-only`      |\n\n### Command-line\n\n```sh\n# Archive repositories that are 1 year old from the last update date.\ngh-archiver --before 1y --token=\"PERSONAL_ACCESS_TOKEN\"\n\n# Archive repositories whose last update date is less than 1 year old\n# TIPS: If the PAT (Personal Access Token) is registered in an environment variable named \"GITHUB_TOKEN\", there is no need to use the --token flag.\ngh-archiver --after 1y\n\n# More information\ngh-archiver --help\n```\n\n## License\n\nSee [LICENSE](https://github.com/InkoHX/gh-archiver/blob/main/LICENSE) file.\n\n## Author\n\n- [InkoHX](https://github.com/InkoHX)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkohx%2Fgh-archiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finkohx%2Fgh-archiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkohx%2Fgh-archiver/lists"}