{"id":15693727,"url":"https://github.com/jakejarvis/backblaze-b2-action","last_synced_at":"2025-03-11T18:31:16.195Z","repository":{"id":65160232,"uuid":"205229736","full_name":"jakejarvis/backblaze-b2-action","owner":"jakejarvis","description":"🔄 GitHub Action to sync a directory with a remote Backblaze B2 bucket 🔥","archived":true,"fork":false,"pushed_at":"2019-09-12T16:51:42.000Z","size":8,"stargazers_count":10,"open_issues_count":3,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T12:43:53.598Z","etag":null,"topics":["actions","b2","backblaze-b2","ci","deployment","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/backblaze-b2-sync","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/jakejarvis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-29T18:48:23.000Z","updated_at":"2025-01-18T16:40:23.000Z","dependencies_parsed_at":"2023-01-13T15:43:48.342Z","dependency_job_id":null,"html_url":"https://github.com/jakejarvis/backblaze-b2-action","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/jakejarvis%2Fbackblaze-b2-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakejarvis%2Fbackblaze-b2-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakejarvis%2Fbackblaze-b2-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakejarvis%2Fbackblaze-b2-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakejarvis","download_url":"https://codeload.github.com/jakejarvis/backblaze-b2-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243090283,"owners_count":20234761,"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":["actions","b2","backblaze-b2","ci","deployment","github-actions"],"created_at":"2024-10-03T18:47:57.441Z","updated_at":"2025-03-11T18:31:15.874Z","avatar_url":"https://github.com/jakejarvis.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action for [Backblaze B2](https://www.backblaze.com/b2/cloud-storage.html) 🔥 \n\n\u003e **⚠️ Note:** To use this action, you must have access to the [GitHub Actions](https://github.com/features/actions) feature. GitHub Actions are currently only available in public beta. You can [apply for the GitHub Actions beta here](https://github.com/features/actions/signup/).\n\nThis simple action syncs a directory (either from your repository or generated during your workflow) with a remote bucket on [Backblaze B2](https://www.backblaze.com/b2/cloud-storage.html).\n\nMany find B2 appealing because of its free bandwidth deal with Cloudflare via the [Bandwidth Alliance](https://www.cloudflare.com/bandwidth-alliance/), but unlike [other](https://en.wikipedia.org/wiki/Amazon_S3#S3_API_and_competing_services) popular cloud \"bucket\" providers like [DigitalOcean Spaces](https://developers.digitalocean.com/documentation/spaces/) and [DreamObjects](https://help.dreamhost.com/hc/en-us/articles/217590537-How-To-Use-DreamObjects-S3-compatible-API), it is [not compatible](https://help.backblaze.com/hc/en-us/articles/218513487-Is-the-B2-Cloud-Storage-API-Compatible-with-Amazon-S3-) with S3's API, so using this official Python-based [tool](https://github.com/Backblaze/B2_Command_Line_Tool) is required.\n\n\n## Usage\n\n### `workflow.yml` Example\n\nPlace in a `.yml` file such as this one in your `.github/workflows` folder. [Refer to the documentation on workflow YAML syntax here.](https://help.github.com/en/articles/workflow-syntax-for-github-actions)\n\n```yaml\nname: Sync B2 Bucket\non: push\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@master\n    - uses: jakejarvis/backblaze-b2-action@master\n      env:\n        SOURCE_DIR: './public'\n        B2_BUCKET: ${{ secrets.B2_BUCKET }}\n        B2_APPKEY_ID: ${{ secrets.B2_APPKEY_ID }}\n        B2_APPKEY: ${{ secrets.B2_APPKEY }}\n```\n\n\n### Required Environment Variables\n\n| Key | Value | Type | Required |\n| ------------- | ------------- | ------------- | ------------- |\n| `SOURCE_DIR` | The local directory you wish to sync/upload to B2. For example, `./public`. | `env` | **Yes** |\n\n\n### Required Secret Variables\n\nThe following variables should be added as \"secrets\" in the action's configuration.\n\n| Key | Value | Type | Required |\n| ------------- | ------------- | ------------- | ------------- |\n| `B2_BUCKET` | The name of the bucket you're syncing to. For example, `my_files`. | `secret` | **Yes** |\n| `B2_APPKEY_ID` | Your Backblaze Application Key ID. [Generate it here.](https://secure.backblaze.com/app_keys.htm) | `secret` | **Yes** |\n| `B2_APPKEY` | Your Backblaze Application Key — aka the \"secret\" key. [Generate it here.](https://secure.backblaze.com/app_keys.htm) | `secret` | **Yes** |\n\n\n## License\n\nThis project is distributed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakejarvis%2Fbackblaze-b2-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakejarvis%2Fbackblaze-b2-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakejarvis%2Fbackblaze-b2-action/lists"}