GCP - 如何將 MySQL-DB 及 Binlog 備份至 Cloudstorage
Published in:2022-09-21 | category: GCP



1. 使用 nohup+& 背景執行資料庫壓縮 (除掉binlog)







2. 取第一支binlog跟最後一隻binlog的日期 (當作到時候壓縮的檔名)







3. 使用 nohup+& 背景執行binlog壓縮







4. 原本的驗證機制被刪除了 (gcloud auth login)







5. 將壓縮好的TAR包傳到中繼機 (之前跟GCP驗證過的機器)







6. 上傳到GCP對應的目錄





Prev:
Windows - win10 無法建立VPN連線
Next:
Fortinet - FortiGate60E SSL匯入自簽3個月憑證