第 21 章

雲端備份(Google 雲端硬碟)

管理 → 匯入匯出 最下面的雲端備份把你自己的資料備份到你自己的 Google 雲端硬碟。每個帳號各自設定;上傳前在這台電腦用備份密碼加密,Google 和我們都看不到內容。

雲端備份:還沒設定時
雲端備份:還沒設定時

第一次設定

  1. 設定備份密碼(至少 8 個字),輸入兩次,按「設定備份密碼」。還原時要用,忘了就救不回來。
  2. 按「連結 Google」。預設瀏覽器會打開 Google 的頁面(沒看到就按「沒看到?再打開一次」):登入你的 Google 帳號,照畫面按「繼續」同意 STOCKings 存取它自己建立的檔案。 還沒通過 Google 審核時會提醒「這個應用程式未經驗證」,選「繼續」。
  3. 回到 STOCKings,畫面會自動顯示已連結。
設好備份密碼之後,按「連結 Google」(Google 的同意畫面在瀏覽器裡,這裡不截圖)
設好備份密碼之後,按「連結 Google」(Google 的同意畫面在瀏覽器裡,這裡不截圖)

程式只看得到它自己建立的「STOCKings Backups」資料夾,看不到你雲端硬碟的其他東西;不經過我們的伺服器。下載的程式沒有內建 Google 用戶端時,展開「進階:用自己的 Google OAuth 用戶端」照線上說明建立。

備份

按「馬上備份」(資料多時要幾十秒),或把自動備份設成每天或每週(只在程式開著時備份;保留份數預設 10 份)。上次備份的時間與失敗原因顯示在同一個地方。

還原

  1. 按「雲端上的備份」列出備份(「種類」寫是「我的資料」還是「整台電腦」)。
  2. 選一份按「還原」,輸入那份備份的密碼。
  3. 「我的資料」馬上生效(畫面會重新載入),別的帳號不受影響。

在新電腦還原:裝好程式、用同一個 email 建帳號、設好備份密碼、連結同一個 Google 帳號,「雲端上的備份」就會列出以前的備份。

整台電腦備份(擁有者)

擁有者的雲端備份多一個整台電腦選項:把擁有者自己的資料,加上勾了同意的帳號,一起備份;換電腦時可以一次把這些帳號(連登入密碼)重建回來。其他帳號要在自己的雲端備份勾「同意擁有者的『整台電腦備份』包含我的資料」才會被包進去(本章第一張圖裡的勾選框),預設不勾。還原「整台電腦」的備份時,這台電腦沒有的帳號照備份重建(連登入密碼),已經有的別人帳號不會被覆蓋。

Chapter 21

Cloud backup (Google Drive)

Cloud backup, at the bottom of Manage → Import / Export, backs up your own data to your own Google Drive. Each account sets it up separately. Backups are encrypted on this computer with your backup password before upload, so neither Google nor we can see the contents.

Cloud backup: before setup
Cloud backup: before setup

First-time setup

  1. Choose a backup password (at least 8 characters), enter it twice and click “Set backup password”. You need it to restore, and if you forget it, the backup cannot be recovered.
  2. Click “Connect Google”. Your default browser opens Google's page (if not, click “Didn’t see it? Open again”). Sign in to your Google account and follow the screens, clicking “Continue” to allow STOCKings to access only the files it creates. Until the app passes Google's review, Google warns that “this app isn't verified”; choose “Continue”.
  3. Back in STOCKings, the screen shows you are connected automatically.
After setting the backup password, click “Connect Google” (Google's consent screen is in your browser, so it isn't shown here)
After setting the backup password, click “Connect Google” (Google's consent screen is in your browser, so it isn't shown here)

The app can only see the “STOCKings Backups” folder it creates, not anything else in your Drive, and nothing goes through our servers. If your download has no built-in Google client, expand “Advanced: use your own Google OAuth client” and follow the online instructions to create one.

Backing up

Click “Back up now” (it can take tens of seconds with lots of data), or set Automatic backup to daily or weekly (backups only run while the app is open; 10 copies are kept by default). The last backup time and any failure reason are shown in the same place.

Restoring

  1. Click “Backups in the cloud” to list your backups (“Type” says “My data” or “Whole computer”).
  2. Pick one, click “Restore” and enter that backup's password.
  3. “My data” takes effect right away (the screen reloads); other accounts are not affected.

Restoring on a new computer: install the app, create an account with the same email, set the backup password and connect the same Google account. “Backups in the cloud” then lists your earlier backups.

Whole-computer backup (owner)

The owner's cloud backup has an extra Whole computer option: it backs up the owner's own data plus every account that has agreed to it, so on a new computer you can rebuild all those accounts (including sign-in passwords) in one go. Other accounts are included only if they tick “Let the owner’s whole-computer backup include my data” in their own cloud backup (the checkbox in this chapter's first screenshot). It is off by default. When restoring a whole-computer backup, accounts this computer doesn't have are rebuilt from the backup (including sign-in passwords); other people's existing accounts are not overwritten.