{"id":24979577,"url":"https://github.com/team-shahu/misskey-backup","last_synced_at":"2025-04-11T16:42:45.655Z","repository":{"id":243407810,"uuid":"812327956","full_name":"team-shahu/misskey-backup","owner":"team-shahu","description":"Tool to periodically backup PostgreSQL in Misskey using Docker container","archived":false,"fork":false,"pushed_at":"2025-03-17T04:36:21.000Z","size":45,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-25T12:51:23.783Z","etag":null,"topics":["backup-tool","docker","shell-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/team-shahu.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-08T15:22:02.000Z","updated_at":"2025-03-17T04:36:25.000Z","dependencies_parsed_at":"2024-06-10T18:17:54.096Z","dependency_job_id":"c4b05396-7ae5-4ab5-a688-f659a38cd27b","html_url":"https://github.com/team-shahu/misskey-backup","commit_stats":null,"previous_names":["team-shahu/misskey-backup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-shahu%2Fmisskey-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-shahu%2Fmisskey-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-shahu%2Fmisskey-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-shahu%2Fmisskey-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/team-shahu","download_url":"https://codeload.github.com/team-shahu/misskey-backup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442338,"owners_count":21104163,"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-tool","docker","shell-scripts"],"created_at":"2025-02-04T01:19:39.753Z","updated_at":"2025-04-11T16:42:45.630Z","avatar_url":"https://github.com/team-shahu.png","language":"Shell","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# misskey-backup\npostgreSQLのバックアップをよしなに取るためのスクリプト  \n  \n## 使い方\n1. `git clone https://github.com/team-shahu/misskey-backup.git`  \n2. `cd misskey-backup`  \n3. `cp ./config/.env.example ./config/.env \u0026\u0026 cp ./config/crontab.example ./config/crontab`  \n4. `./config/.env`を編集  \n4. `./config/crontab`を編集  \n5. (バックアップ先としてGoogle Driveを併用する場合)  \n    1. [LOCAL] [この手順](https://github.com/glotlabs/gdrive/blob/main/docs/create_google_api_credentials.md)に従ってGoogle Drive APIの認証情報を取得  \n    2. [LOCAL] [gdriveを導入](https://github.com/glotlabs/gdrive/blob/main/docs/create_google_api_credentials.md)  \n    3. [LOCAL] `gdrive account add`を実行して[認証情報を登録](https://github.com/glotlabs/gdrive/blob/main/docs/create_google_api_credentials.md)  \n    4. [LOCAL] `account=$(gdrive account list) \u0026\u0026 gdrive account export ${account}`を実行して認証情報を.tar形式でエクスポート  \n    5. [REMOTE] エクスポートしたファイルを./config/配下に配置  \n    6. [REMOTE] `./config/.env`の`GDRIVE_ACCOUNT_FILE`にエクスポートしたファイル名、`GDRIVE_PARENT_ID`にバックアップ先のGoogle DriveのフォルダIDを記述  \n    7. [REMOTE] `./config/.env`の`GOOGLE_DRIVE_BACKUP`を`true`に変更  \n    8. [REMOTE] `./config/crontab`を編集。指定の場所のコメントアウトを外す。  \n6. `docker compose up -d --build`  \n  \n\n\u003e [!NOTE]\n\u003e ネットワークがない旨のエラーが発生することがあります。以下のコマンドを実行し、ネットワークを作成後、再度`docker compose up -d --build`を実行してください。\n\u003e ```bash\n\u003e docker network create misskey-backup_default\n\u003e ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam-shahu%2Fmisskey-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteam-shahu%2Fmisskey-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam-shahu%2Fmisskey-backup/lists"}