diff --git a/kopia_backup/kopia_cli_deploy_win/kopia_backup_scipt.ps1 b/kopia_backup/kopia_cli_deploy_win/kopia_backup_scipt.ps1 index f23e42c..e77b9d9 100644 --- a/kopia_backup/kopia_cli_deploy_win/kopia_backup_scipt.ps1 +++ b/kopia_backup/kopia_cli_deploy_win/kopia_backup_scipt.ps1 @@ -1,6 +1,9 @@ # Before using this script, create a repo, note the setting of a password # kopia repo create filesystem --path C:\kopia_repo --password aaa --file-log-level=info --log-dir=C:\Kopia\Kopia_Logs +# for backblaza b2 +# kopia repository create b2 --bucket=rakanishu --key-id=001496285081a7e0000000003 --key=K0016L8FAMRp/F+6ckbXIYpP0UgTky0 --password aaa + # useful commands: # - kopia repo connect filesystem --path C:\kopia_repo -p aaa # - kopia snap list -all @@ -26,6 +29,7 @@ $USE_SHADOW_COPY = $false # ---------------------------------------------------------------------------- kopia repository connect filesystem --path $REPOSITORY_PATH --password $KOPIA_PASSWORD --file-log-level=info --log-dir=C:\Kopia\Kopia_Logs +# kopia repository connect b2 --bucket=kopia-repo-rakanishu --key-id=001496285081a7e0000000003 --key=K0016L8FAMRp/F+6ckbXIYpP0UgTky0 kopia policy set --global --compression=zstd-fastest --keep-annual=0 --keep-monthly=12 --keep-weekly=8 --keep-daily=14 --keep-hourly=0 --keep-latest=3 --file-log-level=info --log-dir=C:\Kopia\Kopia_Logs diff --git a/kopia_backup/readme.md b/kopia_backup/readme.md index b719a58..93fd22b 100644 --- a/kopia_backup/readme.md +++ b/kopia_backup/readme.md @@ -556,17 +556,20 @@ The users are stored in the repo. ![backblaze_repo_pic](https://i.imgur.com/Yhi2BpM.png) -Backblaze B2 is still cheapest I believe. 10GB free. +[Cheapest](https://www.backblaze.com/cloud-storage/pricing) +cloud storage I believe.
+It cost $6 annualy to store 100GB. Any download is charged extra, +that 100GB would cost $1. [Official Kopia documentation](https://kopia.io/docs/repositories/#backblaze-b2) -* Register. +* [Register](https://www.backblaze.com/sign-up/s3). * Create a new bucket for kopia repository. - * note **bucket name** + * note **the bucket name** * Add a new application key with the access enabled to the new bucket.
After filling the info the site one time shows `applicationKey` - * note **keyID** - * note **applicationKey** + * note **the keyID** + * note **the applicationKey** * in Kopia add new repository `Backblaze b2` fill in the required information: Bucket Name, KeyID and the Key. * Set global policy. @@ -576,18 +579,27 @@ Backblaze B2 is still cheapest I believe. 10GB free. * Pick what to backup. * Done. -In few minutes one can have reliable cloud backup that compresses the data -and deduplicates.
+In few minutes one can have reliable encrypted cloud backup, +that deduplicates and compresses the data.
**Save the repo password set plus all the info used.** -Might be worth to check bucket settings, Lifecycle. I think it should be set to -`Keep only the last version of the file` - -For cli just follow the official documentation. +Might be worth to check bucket settings, [Lifecycle](https://www.backblaze.com/docs/cloud-storage-lifecycle-rules). +I think it should be set to `Keep only the last version of the file` To restore files go in to Snapshots > Time > Start time > Mount as Local Filesystem.
The snapshot will be mounted as `Y:` +### cli + +For cli just follow [the official documentation.](https://kopia.io/docs/repositories/#backblaze-b2) +The example of commands:
+ +* `kopia repository create b2 --bucket=rakanishu --key-id=001496285081a7e0000000003 --key=K0016L8FAMRp/F+6ckbXIYpP0UgTky0 --password aaa` +* `kopia repository connect b2 --bucket=rakanishu --key-id=001496285081a7e0000000003 --key=K0016L8FAMRp/F+6ckbXIYpP0UgTky0 --password aaa --enable-actions` + +The backup script will need connect replaced + + --- ---