backblaze backup/restore by b2 cloud

記錄一下 ... 上次rollback有點慘...
主要是看了這一篇才有的想法 ...
Extract snapshot into (browseable) bucket?
by u/josefrichter in backblaze
總之因為 b2 有 cloud partner https://www.backblaze.com/cloud-storage/solutions/compute, 所以traffic 過去不用錢

然後 VULTR > B2 也不用錢

所以有以下的花招:
- b2 personal archive as zip to b2 cloud,
- copy archive zip to cloud partner and
- exact actual file in cloud parter VPS
- and sync it back to B2 cloud bucket
- rclone everything back to your local.
細緻一點的説明
1. b2 personal backup zip to b2 cloud ( 5T each due to vultr EBS limit, free )
2. create vultr vps with 10T EBS ( maximum 10T seems )
3. copy b2 cloud zip file to vultr ( free per B2 cloud partner )
4. unzip this archive file ( VPS cost per hour )
5. sync exact file back to b2 cloud bucket directly ( free per B2 cloud partner )
6. repeat 1-5 until all file served
7. rclone sync from b2 bucket to whatever you like
VULTR 現在每個顧客有 2T free egress, ( 是不是... )
- 1.-4 same as above
- traffic 2T to your source, change another vultr id and repeat
更暗黑的一招, backup b2 to pikpak (PP)
- from 1-3
- sync 2T zip into PP
- unzip from PP UI
- problem: you can't encrypt before sending into PP
也記錄一下,當下 2024/04 我在 b2 personal 有 ~ 26T..

照上面的玩法,如果我硬碟都毀了,rollback all data back to my storage 成本大概是
- 26 T 壓成 5T 的時間 ( 5 times )
- 5T * 5 repeat 上面 1-5 的 VPS/EBS cost ( 應該 < 100 USD )
- 從 b2 cloud rsync 所有東西回 local 的成本 ( 1G = 0.01 USD, 26 * 1024 * 0.01 ~= 267 USD ), 如果可以流到 google drive 不用錢就可以用 google drive 20T $3300/Mo 的方案了...
- B2 Cloud bucket usage per hour,我壓了一個 ~10G 的東西從 b2 website 測試抓回來的速度然後推一個假設的可能時間
- Apr 24, 2024 23:53
mini_2021_04_27-4-24-15-31-30.zip (11.13 GB) - 用了光世代 500/500 + Wired Mac Mini 大概 19M/s, 看起來時間成本會比較貴
- 19M/s = 66.7G per hour
- 24 * 1024 / 66.7 = 400 hour = 17 Day (!)
- 但感覺看起來 B2 cloud backup 是 1T $6/Mo, per day $0.2 USD, 26 * $0.2 * 17 = $9 USD
- Apr 24, 2024 23:53
- 算起來大概.... 369 USD, $1200 TWD, 對於 DR 來說,應該也不算貴... 1T 成本大概在 $14USD?
- 應該有更最佳化的路... 但現在夠好了。

