{"id":29027050,"url":"https://github.com/hogesuke/sarchive","last_synced_at":"2025-09-01T16:46:00.625Z","repository":{"id":32493968,"uuid":"36074586","full_name":"hogesuke/sarchive","owner":"hogesuke","description":"「さくらのクラウド」のアーカイブ作成を簡単にコンソールから実行するためのgem","archived":false,"fork":false,"pushed_at":"2015-06-02T13:18:08.000Z","size":192,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T10:35:41.598Z","etag":null,"topics":["ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/sarchive","language":"Ruby","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/hogesuke.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":"2015-05-22T13:48:09.000Z","updated_at":"2017-03-04T08:34:21.000Z","dependencies_parsed_at":"2022-08-21T01:20:46.865Z","dependency_job_id":null,"html_url":"https://github.com/hogesuke/sarchive","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hogesuke/sarchive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hogesuke%2Fsarchive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hogesuke%2Fsarchive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hogesuke%2Fsarchive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hogesuke%2Fsarchive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hogesuke","download_url":"https://codeload.github.com/hogesuke/sarchive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hogesuke%2Fsarchive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273158293,"owners_count":25055859,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ruby","ruby-gem"],"created_at":"2025-06-26T06:02:43.374Z","updated_at":"2025-09-01T16:46:00.588Z","avatar_url":"https://github.com/hogesuke.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sarchive [![Gem Version](https://badge.fury.io/rb/sarchive.svg)](http://badge.fury.io/rb/sarchive)\n==========\n「さくらのクラウド」のアーカイブ作成を簡単にコンソールから実行するためのgemです。\n\n## 説明\nこのgemを使用することにより、コンソールから簡単に複数のディスクのアーカイブを作成できます。\nまた、アーカイブ作成時に古いアーカイブの削除を同時に行うことも可能です。  \ncronで定期的に実行するように設定することで、面倒なバックアップ作業を自動化できます。\n\n## インストール\n    gem install sarchive\n    \n## 基本的な使い方\n1. 設定ファイルの生成\n\n        sarchive init [--path] (\u003c/path/to/config/sarchive.config.yml\u003e)\nデフォルトではカレントディレクトリに`sarchive.config.yml`を生成します。  \n生成先を変更する場合は`--path`オプションでパスを指定してください。\n\n2. 設定ファイルの編集  \n実行に必要となるAPIキーや、アーカイブ作成対象のディスクを指定してください。\n\n        token:   # コンパネで作成したAPIキーのaccess-tokenを指定してください\n        secret:  # コンパネで作成したAPIキーのaccess-token-secretを指定してください\n        disks:\n          tk1v:  # 対象のゾーン名 (tk1a: 東京第1, is1a: 石狩第1, is1b: 石狩第2, tk1v: Sandbox)\n            - 999999999999 # 対象ディスクのID\n            - 999999999999 # 複数指定可\n    \n3. 実行\n\n        sarchive exec [--path] (\u003c/path/to/config/sarchive.config.yml\u003e)\nデフォルトではカレントディレクトリの`sarchive.config.yml`をもとに実行します。  \n読み込む設定ファイルを変更する場合は、`--path`オプションでパスを指定してください。\n\n## その他の機能\n### アーカイブ自動削除\nアーカイブ作成と同時に古いアーカイブを削除することができます。  \n以下のように設定ファイルを編集してください。\n\n    auto_delete:\n      enable: true  # trueを指定し自動削除を有効にしてください\n      store:        # 何を基準にアーカイブを削除するかの設定です。counts, hoursのどちらか一方を指定してください\n        # counts: 3\n        # hours : 72\n\n- `counts`  \n数を基準に削除を行います。仮に3を指定した場合、新しい順に3個残して4つ目以降を削除します。  \n- `hours`  \n経過時間を基準に削除を行います。仮に72を指定した場合、作成から72時間より多く経過しているものを削除します。\n\n## 注意事項\nプロダクション環境で利用する前に[Sandbox](http://cloud-news.sakura.ad.jp/sandbox/)でテストすることを推奨します。  \n本プログラムを使用して損害が発生した場合も、本プログラム作成者は一切の責任を負いません。\n\n## TODO\n- 実行結果のSlack通知機能\n\n## Licence\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhogesuke%2Fsarchive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhogesuke%2Fsarchive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhogesuke%2Fsarchive/lists"}