Video Tutorial#
Preface#
The previous post "First Release on the Internet! A storage cluster integrating R2, GitHub, GitLab, and Cloudflare, achieving automatic backups, ultra-fast access, and unlimited scalability! Much more practical than image hosting solutions" https://www.fscarmen.com/2024/11/oss.html
This time, based on the existing R2, GitHub, and GitLab, my distributed file storage cluster welcomes a new memberâBackblaze B2. By integrating B2 into the cluster, the performance and flexibility of the storage system are further enhanced, especially in terms of large file storage and data redundancy.
Deployment Requirements#
- Backblaze B2 account, https://www.backblaze.com
- R2 account, https://r2.mypikpak.com
- GitHub account, https://github.com
- GitLab account, https://gitlab.com
- Cloudflare account, https://www.cloudflare.com
- Install PicGo, https://molunerfinn.com/PicGo
Process and PicGo Usage#
Backblaze Registration#
Open the official registration account: https://www.backblaze.com/get-started
PicGo S3 Plugin Settings#
File path files/{fileName}.{extName}
Worker Rewrite URL#
Worker code: https://github.com/fscarmen2/pic-hosting-cluster/blob/main/cloudflare_worker/github_gitlab_s3.js
Fill in B2, R2, GitHub, and GitLab information at the top
GitHub Action Scheduled Synchronization Task#
Action code: https://github.com/fscarmen2/pic-hosting-cluster/blob/main/s3_to_github/.github/workflows/s3_to_github.yml
All account information files: https://github.com/fscarmen2/pic-hosting-cluster/blob/main/s3_to_github/config.yml
Summary#
Backblaze B2 is a reliable and cost-effective cloud storage solution known for its strong security and ease of use. We will integrate Backblaze B2 into the existing storage cluster as an additional storage node, further decentralizing data and enhancing the overall system's reliability.