{"id":18877567,"url":"https://github.com/nftstorage/backup","last_synced_at":"2025-04-14T18:31:47.578Z","repository":{"id":43707887,"uuid":"438688581","full_name":"nftstorage/backup","owner":"nftstorage","description":"***Notice: This repository is no longer maintained.*** A tool to backup all data for disaster recovery.","archived":false,"fork":false,"pushed_at":"2023-05-01T13:21:29.000Z","size":593,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T07:02:17.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/nftstorage.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":"2021-12-15T15:58:36.000Z","updated_at":"2024-07-01T22:41:32.000Z","dependencies_parsed_at":"2022-09-02T12:41:52.188Z","dependency_job_id":null,"html_url":"https://github.com/nftstorage/backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nftstorage%2Fbackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nftstorage%2Fbackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nftstorage%2Fbackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nftstorage%2Fbackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nftstorage","download_url":"https://codeload.github.com/nftstorage/backup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248936740,"owners_count":21186092,"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-08T06:20:03.193Z","updated_at":"2025-04-14T18:31:47.247Z","avatar_url":"https://github.com/nftstorage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backup\n\nA tool to backup all data for disaster recovery!\n\n## Usage\n\nDrop a `.env` file in the project root and populate:\n\n```sh\nDATABASE_CONNECTION=\u003cvalue\u003e\nRO_DATABASE_CONNECTION=\u003cvalue\u003e\nIPFS_ADDRS=\u003cvalue\u003e\nS3_REGION=\u003cvalue\u003e\nS3_ACCESS_KEY_ID=\u003cvalue\u003e\nS3_SECRET_ACCESS_KEY=\u003cvalue\u003e\nS3_BUCKET_NAME=\u003cvalue\u003e\nREDIS_CONN_STRING=\u003cvalue\u003e # optional - used to store CIDs that timed out during fetch\n```\n\nReplace `DATABASE_CONNECTION` with the connection string for the database you want to write to and `RO_DATABASE_CONNECTION` with the connection string for the database you want to read from, `IPFS_ADDRS` with the multiaddrs of nodes where content can be found and `S3_*` with the relevant S3 bucket details.\n\nStart the backup:\n\n```sh\nnpm start\n# with optional start date:\nnpm start -- 2021-12-25\n```\n\nThe tool writes _complete_ CAR files to the S3 bucket to a path like: `complete/\u003cCID\u003e.car`. Where `CID` is a normalized, v1 base32 encoded CID.\n\n### Docker\n\nThere's a `Dockerfile` that runs the tool in docker.\n\n```sh\ndocker build -t backup .\ndocker run -d backup\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnftstorage%2Fbackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnftstorage%2Fbackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnftstorage%2Fbackup/lists"}