{"id":22846501,"url":"https://github.com/jsonkao/sync-archives","last_synced_at":"2025-03-31T05:41:17.295Z","repository":{"id":114471307,"uuid":"252209463","full_name":"jsonkao/sync-archives","owner":"jsonkao","description":"A collection of scripts for syncing local and remote archives.","archived":false,"fork":false,"pushed_at":"2023-06-07T12:39:11.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T10:15:16.524Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsonkao.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-01T15:09:14.000Z","updated_at":"2023-06-06T20:26:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"80858d79-1b10-49b1-ad4e-4535583546cd","html_url":"https://github.com/jsonkao/sync-archives","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonkao%2Fsync-archives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonkao%2Fsync-archives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonkao%2Fsync-archives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsonkao%2Fsync-archives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsonkao","download_url":"https://codeload.github.com/jsonkao/sync-archives/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423494,"owners_count":20774796,"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-12-13T03:29:21.979Z","updated_at":"2025-03-31T05:41:17.275Z","avatar_url":"https://github.com/jsonkao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A collection of scripts for syncing local and remote archives.\n\n## Setup\n\n1. Clone this directory and `npm install`.\n\n2. For archives on GitHub: Create a `.env` file. Set `TOKEN` to your [OAuth token](https://help.github.com/articles/creating-an-access-token-for-command-line-use) (use spec-scraper-bot if you can). Add `.env` to your [`.gitignore`](https://guide.freecodecamp.org/git/gitignore/).\n\n3. For archives on S3: Configure `spec-graphics` AWS credentials.\n\n## GitHub archives\n\n\u003cpre\u003e\n$ node github-download.js \u003cvar\u003eCONTENT_PATH\u003c/var\u003e \u003cvar\u003eOUTPUT_PATH\u003c/var\u003e\n\u003c/pre\u003e\n\nThis script downloads an archive from GitHub.\n\nThe content path should be of the form `/repos/:owner/:repo/contents/:path`. The output path is a local directory. The script will make the output path if it doesn't already exist.\n\n\u003cpre\u003e\n$ node github-upload.js \u003cvar\u003eINPUT_PATH\u003c/var\u003e \u003cvar\u003eCONTENT_PATH\u003c/var\u003e\n\u003c/pre\u003e\n\nThis script uploads a local archive to GitHub.\n\nThe content path should be of the form `/repos/:owner/:repo/contents/:path`. The input path is a local directory. The script will make the input path if it doesn't already exist.\n\n## S3 archives\n\n_In progress._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonkao%2Fsync-archives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsonkao%2Fsync-archives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsonkao%2Fsync-archives/lists"}