[Oracle Cloud] CloudBerry Backup を使って、Object Storage に自動バックアップをしてみた

# はじめに

OCI Object Storage と CloudBerry Backup を使って、15分ごとに準リアルタイムバックアップをしてみました。手順を忘れないようにメモっておきます。



# 制限事項

OCI Object Storage のバックアップ先は、OCI の Home Region のみです。それ以外の Region は選択できないので、最初のアカウント開設時には Home Region の指定を気を付けましょう。



# CloudBerry Backup のインストール

次の URL から、検証のため15日使える Free Trial をダウンロード
https://www.msp360.com/backup.aspx

![1611193824938.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/46b54f7d-4d75-5962-4f8c-2a2f83492866.png)



ダウンロードしてきた「CloudBerryBackup_v7.0.0.648SERVERBAREMETAL_c924449.exe」を実行します。
Next

![1611194198931.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/5aacc540-3da9-2f4c-a7c9-8541ed2ef11e.png)



Install

![1611194210984.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/3a42843b-c65e-71f4-8bf6-9b9632c89085.png)



Finish

![1611194234349.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/a137f0ef-0034-a28c-45e1-3bf7b56976de.png)



Start Trial

![1611194282380.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/c5ebd829-f3ac-64e7-ea7f-2d26030f7031.png)



CloudBerry Backup が起動します

![1611199675881.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/0288cb84-508f-9aa9-18b8-415bd1a9b9c9.png)



# Customer Secret Keys 生成

次のURLを参考に、OCI 上で Customer Secret Keys を生成します。

- Secret Key
- - Access Key

https://qiita.com/sugimount/items/548da947d6ffe61d4e8e#customer-secret-keys-%E7%94%9F%E6%88%90



# ObjectStorage を登録

CloudBerry Backup に、OCI Object Storage を登録します。

クリック

![1611199744167.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/cbe2f3ec-cc57-d692-5de6-e0287e35aa52.png)



S3 Compatible

![1611199766723.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/884e338f-c990-f6e6-898a-0d21d74f40ba.png)



Advanced Settings

![1611200929969.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/dab76a51-6a59-a8ec-2bf6-f0e51a9b4150.png)



Signature Version を 4

![1611200981445.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/7ebd17ea-edd7-9368-e4c4-2b1fd1614575.png)



各種パラメータを入力
使えるリージョンは Home Region のみなので注意しましょう

```
OCI Object Storage
https://<Namespaceを確認して入れる>.compat.objectstorage.us-ashburn-1.oraclecloud.com
```



パラメータ

![1611201279056.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/a931dddd-6610-433d-f1a5-8df023265727.png)



無事登録されたので、Close

![1611201324266.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/4426476c-28ff-b0a8-3805-0abe4840e5f9.png)



# バックアップ用ディレクトリの作成

テスト用に2つのファイルを格納したディレクトリを作成します

![1611201426835.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/808a481f-86db-a946-f22c-d3f2d0db541e.png)



# Backup Plans の設定

15分おきのバックアップ設定を行います

Files

![1611213729710.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/20bc163f-e209-900a-4d32-b5f42022d4a5.png)



Current Backup

![1611213777101.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/e5685846-155b-8d37-807f-a9c16e03a59d.png)



Next

![1611213826485.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/6456d0f7-cc0a-73eb-a5a8-3b5dcf3611ee.png)



設定したものを選択

![1611213853375.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/b45eb460-b243-62e1-7f96-c414c17b6332.png)



Next

![1611213888285.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/5dc76234-85e3-6aab-2271-c00fe79da508.png)



Simple Mode でやってみる

![1611213933468.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/d38d10e8-8b2c-7ed8-542b-835686d271f7.png)



Next

![1611213973108.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/34bffddb-64b0-934b-7246-5ae756d5b190.png)





バックアップ対象を選択

![1611214025605.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/a338b808-7656-b17b-1680-40af551acda9.png)



デフォルトのまま。すべてのファイルをバックアップする

![1611214093383.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/e9043029-afe3-f667-3ccd-75e78114bcb7.png)



Next

![1611214116870.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/73ae4660-2c61-1dd7-3296-f5c5a7718b24.png)



Default Retantion Policy

![1611214167247.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/93cd3314-d514-797b-4088-7804af19be51.png)



リアルタイムバックアップでやってみる

![1611214208725.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/6a62206b-4fad-68e3-5f15-224cd1988634.png)



OK (NTFS Scan が無効になるらしい)

![1611218025977.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/25378e17-d0cc-75b3-211b-c39332aea08f.png)



メール通知は無し

![1611218087110.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/cc57bf1e-323a-73e9-5245-9531e9a46e70.png)



Next

![1611218126874.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/f0e158ca-ea7e-9b17-895a-4765f2ed3520.png)



Finish

![1611218151314.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/b5ea2418-d71c-d6cd-5121-2149edc41b23.png)



バックアップ中

![1611218171825.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/7d79d89b-c9d4-2d1e-e8eb-f82d807aa09e.png)



Object Storage にバックアップされている

![1611218516679.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/e7c72c37-568c-1387-9124-b6d653acf4ae.png)



# ファイルの追加

file3 を新規作成　リアルタイムにバックアップされるか確認

![1611218723403.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/c4f029b6-4aab-648c-258c-5bbbb60a338c.png)



次の Blog によると、15分ごとにスキャンして同期される様子
https://www.msp360.com/resources/blog/real-time-backup/amp/?__hstc=228156866.d94f03a603e924c0a541a2b282a4de34.1611194092882.1611194092882.1611218920700.2&__hssc=228156866.1.1611218920700&__hsfp=3541895711

![1611218892077.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/dbd6c0f5-79b1-7138-6231-e94010bc186a.png)



確かに15分おきに動作している

![1611219072298.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/83f5449d-7427-7d8c-7807-63b1613abe36.png)



時間がくると、バックアップがされている

![1611219133429.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/2648a96b-2822-511d-9579-bdb482b38555.png)



# リストアしてみる

Restore Files

![1611219204918.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/4d4786b6-ca96-c9f5-3e12-8b7add77600a.png)



one

![1611219237310.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/e0c91010-302a-9f0a-873f-26c16be74653.png)



Next

![1611219267128.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/d9ff9ab4-164f-41c9-f048-2f90b41bf753.png)



Next

![1611219293164.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/77711c64-7aa5-b95d-ab33-b13c25d00c19.png)



Next

![1611219319979.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/01ab34e7-4fd8-ea0f-3706-3c2aab86f543.png)



Next

![1611219363867.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/ee4e8e9a-fba6-2c3a-34b5-0c1bd20625eb.png)



リストア先を指定

![1611219404226.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/6cb2c9b3-28de-2b37-2d99-b36451a28349.png)



Next

![1611219432352.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/69fd7355-291e-794e-3ffe-a51b596f8d44.png)



Next

![1611219460617.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/ee4a1039-e380-60b7-7c59-0f32ad08cc8a.png)



Next

![1611219474511.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/ad34a640-3693-c72a-dc0a-52980d7f5882.png)



Next

![1611219488301.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/35e59dee-b4ae-7d42-9787-a99b3ab88446.png)



Finish

![1611219503671.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/c03d928a-f9c2-8263-82c1-6a6fba84392e.png)



Restored にリストアされている

![1611219546825.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/104247/3c92eb53-bd27-a3f6-18b5-79513a0d92fe.png)



# 参考URL

https://qiita.com/sugimount/items/548da947d6ffe61d4e8e